Final Class Yiisoft\Queue\Middleware\FailureHandling\FailureHandlingRequest
| Inheritance | Yiisoft\ |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| getException() | Yiisoft\ |
|
| getMessage() | Yiisoft\ |
|
| getQueueName() | Logical name of the queue which executed the message. | Yiisoft\ |
| getRetryProducer() | Direct retry target used by synchronous producer execution, if any. | Yiisoft\ |
| withException() | Yiisoft\ |
|
| withMessage() | Yiisoft\ |
|
| withQueueName() | Yiisoft\ |
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $message | Yiisoft\ |
|
| $exception | Throwable | |
| $queueName | string | |
| $retryProducer | ?\ |
|
public function __construct(
private MessageInterface $message,
private Throwable $exception,
private string $queueName,
private ?QueueProducerInterface $retryProducer = null,
) {}
| public Throwable getException ( ) |
public function getException(): Throwable
{
return $this->exception;
}
| public Yiisoft\ |
public function getMessage(): MessageInterface
{
return $this->message;
}
Logical name of the queue which executed the message.
| public string getQueueName ( ) |
public function getQueueName(): string
{
return $this->queueName;
}
Direct retry target used by synchronous producer execution, if any.
| public ?\ |
public function getRetryProducer(): ?QueueProducerInterface
{
return $this->retryProducer;
}
| public self withException ( Throwable $exception ) | ||
| $exception | Throwable | |
public function withException(Throwable $exception): self
{
$instance = clone $this;
$instance->exception = $exception;
return $instance;
}
| public self withMessage ( Yiisoft\ | ||
| $message | Yiisoft\ |
|
public function withMessage(MessageInterface $message): self
{
$instance = clone $this;
$instance->message = $message;
return $instance;
}
| public self withQueueName ( string $queueName ) | ||
| $queueName | string | |
public function withQueueName(string $queueName): self
{
$instance = clone $this;
$instance->queueName = $queueName;
return $instance;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.