EventQueueTask
class EventQueueTask 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
mixed
from
Serializes
void
__construct(EventShouldQueue $event, mixed $payload = null)
EventQueueTask constructor
void
process()
Process event
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
__construct(EventShouldQueue $event, mixed $payload = null)
EventQueueTask constructor
final int
getPriority()
Get the worker priority
string
getId()
Get the worker id
int
getAttempts()
Get the worker attempts
void
setAttempts(int $attempts)
Set the worker attempts
final int
getRetry()
Get the worker retry
final void
setRetry(int $retry)
Set the worker retry
final string
getQueue()
Get the worker queue
final void
setQueue(string $queue)
Set the worker queue
final int
getDelay()
Get the worker delay
final void
setDelay(int $delay)
Set the worker delay
void
deleteTask()
Delete the task from queue.
bool
taskShouldBeDelete()
Delete the task from queue.
void
onException(Throwable $e)
Get the task error
void
process()
Process event