MessagingQueueJob
class MessagingQueueJob extends QueueJob (View source)
Traits
Properties
| protected string | $queue | Define the queue |
from QueueJob |
| protected int | $delay | Define the delay |
from QueueJob |
| protected int | $retry | Define the time of retry |
from QueueJob |
| protected int | $priority | Define the priority |
from QueueJob |
| protected bool | $delete | Determine if the job can be deleted |
from QueueJob |
| protected string|null | $id | Define the job id |
from QueueJob |
| protected int | $attempts | Define the job attempts |
from QueueJob |
Methods
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.
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
deleteJob()
Delete the job from queue.
bool
jobShouldBeDelete()
Delete the job from queue.
void
onException(Throwable $e)
Send the processing exception
void
process()
Process mail