class DelayedRequeueException extends RuntimeException (View source)

Throw this exception to leave an item in the queue until its lock expires.

Properties

protected int $delay

The interval of time that the item should remain locked (in seconds).

Methods

__construct(int $delay = 0, string $message = '', int $code = 0, Throwable $previous = NULL)

Constructs a DelayedRequeueException.

int
getDelay()

Get the desired delay interval for this item.

Details

__construct(int $delay = 0, string $message = '', int $code = 0, Throwable $previous = NULL)

Constructs a DelayedRequeueException.

Parameters

int $delay

The desired delay interval for this item (in seconds).

string $message

The error message.

int $code

The error code.

Throwable $previous

The previous throwable used for the exception chaining.

int getDelay()

Get the desired delay interval for this item.

Return Value

int

The desired delay interval for this item.

See also

self::$delay For recommended value usage in a queue processor.