class NotifierQueueTask extends QueueTask (View source)

Traits

Properties

protected string $queue

Define the queue

from  QueueTask
protected int $delay

Define the delay

from  QueueTask
protected int $retry

Define the time of retry

from  QueueTask
protected int $priority

Define the priority

from  QueueTask
protected bool $delete

Determine if the task can be deleted

from  QueueTask
protected string|null $id

Define the task id

from  QueueTask
protected int $attempts

Define the task attempts

from  QueueTask

Methods

array
__serialize()

Prepare the instance values for serialization.

mixed
getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

void
__unserialize(array $values)

Restore the model after serialization.

void
setId(string $id)

Set the task ID

int
getPriority()

Get the task priority

string
getId()

Get the task id

int
getAttempts()

Get the task attempts

void
setAttempts(int $attempts)

Set the task attempts

int
getRetry()

Get the task retry

void
setRetry(int $retry)

Set the task retry

string
getQueue()

Get the task queue

void
setQueue(string $queue)

Set the task queue

int
getDelay()

Get the task delay

void
setDelay(int $delay)

Set the task delay

void
deleteTask()

Delete the task from queue.

bool
taskShouldBeDelete()

Delete the task from queue.

bool
jobShouldBeDelete()

Delete the task from queue.

void
onException(Throwable $e)

Send the processing exception

void
process()

Process mail

__construct(Model $context, Notifier $notifier)

NotifierQueueTask constructor

Details

array __serialize()

Prepare the instance values for serialization.

Return Value

array

protected mixed getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

Parameters

ReflectionProperty $property

Return Value

mixed

void __unserialize(array $values)

Restore the model after serialization.

Parameters

array $values

Return Value

void

void setId(string $id)

Set the task ID

Parameters

string $id

Return Value

void

final int getPriority()

Get the task priority

Return Value

int

string getId()

Get the task id

Return Value

string

int getAttempts()

Get the task attempts

Return Value

int

void setAttempts(int $attempts)

Set the task attempts

Parameters

int $attempts

Return Value

void

final int getRetry()

Get the task retry

Return Value

int

final void setRetry(int $retry)

Set the task retry

Parameters

int $retry

Return Value

void

final string getQueue()

Get the task queue

Return Value

string

final void setQueue(string $queue)

Set the task queue

Parameters

string $queue

Return Value

void

final int getDelay()

Get the task delay

Return Value

int

final void setDelay(int $delay)

Set the task delay

Parameters

int $delay

Return Value

void

void deleteTask()

Delete the task from queue.

Return Value

void

bool taskShouldBeDelete()

Delete the task from queue.

Return Value

bool

bool jobShouldBeDelete()

Delete the task from queue.

Return Value

bool

void onException(Throwable $e)

Send the processing exception

Parameters

Throwable $e

Return Value

void

void process()

Process mail

Return Value

void

__construct(Model $context, Notifier $notifier)

NotifierQueueTask constructor

Parameters

Model $context
Notifier $notifier