MailQueueProducer
class MailQueueProducer extends ProducerService (View source)
Traits
Properties
protected string | $queue | Define the queue |
from ProducerService |
protected int | $delay | Define the delay |
from ProducerService |
protected int | $retry | Define the time of retry |
from ProducerService |
protected int | $priority | Define the priority |
from ProducerService |
protected bool | $delete | Determine if the job can be deleted |
from ProducerService |
protected string|null | $id | Define the job id |
from ProducerService |
protected int | $attempts | Define the job attempts |
from ProducerService |
Methods
Details
array
__serialize()
Prepare the instance values for serialization.
void
__unserialize(array $values)
Restore the model after serialization.
protected mixed
getPropertyValue(ReflectionProperty $property)
Get the property value for the given property.
void
__construct(string $view, array $data, Message $message)
MailQueueProducer constructor
final int
getPriority()
Get the producer priority
string
getId()
Get the producer id
int
getAttempts()
Get the producer attempts
final int
getRetry()
Get the producer retry
final string
getQueue()
Get the producer queue
final int
getDelay()
Get the producer delay
void
setAttempts(int $attempts)
Set the producer attempts
final void
setRetry(int $retry)
Set the producer retry
final void
setQueue(string $queue)
Set the producer queue
final void
setDelay(int $delay)
Set the producer 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