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

array
__serialize()

Prepare the instance values for serialization.

mixed
getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

void
__unserialize(array $values)

Restore the model after serialization.

void
__construct(Model $context, Messaging $message)

MessagingQueueJob constructor

int
getPriority()

Get the worker priority

from  QueueJob
string
getId()

Get the worker id

from  QueueJob
int
getAttempts()

Get the worker attempts

from  QueueJob
void
setAttempts(int $attempts)

Set the worker attempts

from  QueueJob
int
getRetry()

Get the worker retry

from  QueueJob
void
setRetry(int $retry)

Set the worker retry

from  QueueJob
string
getQueue()

Get the worker queue

from  QueueJob
void
setQueue(string $queue)

Set the worker queue

from  QueueJob
int
getDelay()

Get the worker delay

from  QueueJob
void
setDelay(int $delay)

Set the worker delay

from  QueueJob
void
deleteJob()

Delete the job from queue.

from  QueueJob
bool
jobShouldBeDelete()

Delete the job from queue.

from  QueueJob
void
onException(Throwable $e)

Send the processing exception

void
process()

Process mail

Details

array __serialize()

Prepare the instance values for serialization.

Return Value

array

protected mixed getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

Parameters

ReflectionProperty $property

Return Value

mixed

void __unserialize(array $values)

Restore the model after serialization.

Parameters

array $values

Return Value

void

void __construct(Model $context, Messaging $message)

MessagingQueueJob constructor

Parameters

Model $context
Messaging $message

Return Value

void

final int getPriority()

Get the worker priority

Return Value

int

string getId()

Get the worker id

Return Value

string

int getAttempts()

Get the worker attempts

Return Value

int

void setAttempts(int $attempts)

Set the worker attempts

Parameters

int $attempts

Return Value

void

final int getRetry()

Get the worker retry

Return Value

int

final void setRetry(int $retry)

Set the worker retry

Parameters

int $retry

Return Value

void

final string getQueue()

Get the worker queue

Return Value

string

final void setQueue(string $queue)

Set the worker queue

Parameters

string $queue

Return Value

void

final int getDelay()

Get the worker delay

Return Value

int

final void setDelay(int $delay)

Set the worker 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