0

Final Class Yiisoft\Queue\Middleware\FailureHandling\FailureHandlingRequest

InheritanceYiisoft\Queue\Middleware\FailureHandling\FailureHandlingRequest

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( Yiisoft\Queue\Message\MessageInterface $message, Throwable $exception, string $queueName, ?\Yiisoft\Queue\QueueProducerInterface $retryProducer null )
$message Yiisoft\Queue\Message\MessageInterface
$exception Throwable
$queueName string
$retryProducer ?\Yiisoft\Queue\QueueProducerInterface

                public function __construct(
    private MessageInterface $message,
    private Throwable $exception,
    private string $queueName,
    private ?QueueProducerInterface $retryProducer = null,
) {}

            
getException() public method

public Throwable getException ( )

                public function getException(): Throwable
{
    return $this->exception;
}

            
getMessage() public method

public Yiisoft\Queue\Message\MessageInterface getMessage ( )

                public function getMessage(): MessageInterface
{
    return $this->message;
}

            
getQueueName() public method

Logical name of the queue which executed the message.

public string getQueueName ( )

                public function getQueueName(): string
{
    return $this->queueName;
}

            
getRetryProducer() public method

Direct retry target used by synchronous producer execution, if any.

public ?\Yiisoft\Queue\QueueProducerInterface getRetryProducer ( )

                public function getRetryProducer(): ?QueueProducerInterface
{
    return $this->retryProducer;
}

            
withException() public method

public self withException ( Throwable $exception )
$exception Throwable

                public function withException(Throwable $exception): self
{
    $instance = clone $this;
    $instance->exception = $exception;
    return $instance;
}

            
withMessage() public method

public self withMessage ( Yiisoft\Queue\Message\MessageInterface $message )
$message Yiisoft\Queue\Message\MessageInterface

                public function withMessage(MessageInterface $message): self
{
    $instance = clone $this;
    $instance->message = $message;
    return $instance;
}

            
withQueueName() public method

public self withQueueName ( string $queueName )
$queueName string

                public function withQueueName(string $queueName): self
{
    $instance = clone $this;
    $instance->queueName = $queueName;
    return $instance;
}