WorkerMessageFailedEvent
extends AbstractWorkerMessageEvent
in package
FinalYes
Dispatched when a message was received from a transport and handling failed.
The event name is the class name.
Table of Contents
Properties
- $envelope : mixed
- $receiverName : string
- $throwable : Throwable
- $willRetry : bool
Methods
- __construct() : mixed
- addStamps() : void
- getEnvelope() : Envelope
- getReceiverName() : string
- Returns a unique identifier for transport receiver this message was received from.
- getThrowable() : Throwable
- setForRetry() : void
- willRetry() : bool
Properties
$envelope
private
mixed
$envelope
$receiverName
private
string
$receiverName
$throwable
private
Throwable
$throwable
$willRetry
private
bool
$willRetry
= false
Methods
__construct()
public
__construct(Envelope $envelope, string $receiverName, Throwable $error) : mixed
Parameters
- $envelope : Envelope
- $receiverName : string
- $error : Throwable
addStamps()
public
addStamps(StampInterface ...$stamps) : void
Parameters
- $stamps : StampInterface
getEnvelope()
public
getEnvelope() : Envelope
Return values
EnvelopegetReceiverName()
Returns a unique identifier for transport receiver this message was received from.
public
getReceiverName() : string
Return values
stringgetThrowable()
public
getThrowable() : Throwable
Return values
ThrowablesetForRetry()
public
setForRetry() : void
willRetry()
public
willRetry() : bool