QueueTask
abstract class QueueTask (View source)
Traits
Properties
| protected string | $queue | Define the queue |
|
| protected int | $delay | Define the delay |
|
| protected int | $retry | Define the time of retry |
|
| protected int | $priority | Define the priority |
|
| protected bool | $delete | Determine if the task can be deleted |
|
| protected string|null | $id | Define the task id |
|
| protected int | $attempts | Define the task attempts |
Methods
Set the task ID
Get the task priority
Get the task id
Get the task attempts
Set the task attempts
Get the task retry
Set the task retry
Get the task queue
Set the task queue
Get the task delay
Set the task delay
Delete the task from queue.
Delete the task from queue.
Delete the task from queue.
Process the task
Details
array
__serialize()
Prepare the instance values for serialization.
protected 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
final 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
final int
getRetry()
Get the task retry
final void
setRetry(int $retry)
Set the task retry
final string
getQueue()
Get the task queue
final void
setQueue(string $queue)
Set the task queue
final int
getDelay()
Get the task delay
final 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)
Get the task error
abstract void
process()
Process the task