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

array
__serialize()

Prepare the instance values for serialization.

void
__unserialize(array $values)

Restore the model after serialization.

mixed
getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

void
__construct(string $view, array $data, Message $message)

MailQueueProducer constructor

int
getPriority()

Get the producer priority

string
getId()

Get the producer id

int
getAttempts()

Get the producer attempts

int
getRetry()

Get the producer retry

string
getQueue()

Get the producer queue

int
getDelay()

Get the producer delay

void
setAttempts(int $attempts)

Set the producer attempts

void
setRetry(int $retry)

Set the producer retry

void
setQueue(string $queue)

Set the producer queue

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

Details

array __serialize()

Prepare the instance values for serialization.

Return Value

array

void __unserialize(array $values)

Restore the model after serialization.

Parameters

array $values

Return Value

void

protected mixed getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

Parameters

ReflectionProperty $property

Return Value

mixed

void __construct(string $view, array $data, Message $message)

MailQueueProducer constructor

Parameters

string $view
array $data
Message $message

Return Value

void

final int getPriority()

Get the producer priority

Return Value

int

string getId()

Get the producer id

Return Value

string

int getAttempts()

Get the producer attempts

Return Value

int

final int getRetry()

Get the producer retry

Return Value

int

final string getQueue()

Get the producer queue

Return Value

string

final int getDelay()

Get the producer delay

Return Value

int

void setAttempts(int $attempts)

Set the producer attempts

Parameters

int $attempts

Return Value

void

final void setRetry(int $retry)

Set the producer retry

Parameters

int $retry

Return Value

void

final void setQueue(string $queue)

Set the producer queue

Parameters

string $queue

Return Value

void

final void setDelay(int $delay)

Set the producer delay

Parameters

int $delay

Return Value

void

void deleteJob()

Delete the job from queue.

Return Value

void

bool jobShouldBeDelete()

Delete the job 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