0

Interface Yiisoft\Queue\Worker\WorkerInterface

Implemented byYiisoft\Queue\Debug\QueueWorkerInterfaceProxy, Yiisoft\Queue\Stubs\StubWorker, Yiisoft\Queue\Worker\Worker

Public Methods

Hide inherited methods

Method Description Defined By
process() Yiisoft\Queue\Worker\WorkerInterface

Method Details

Hide inherited methods

process() public abstract method

public abstract Yiisoft\Queue\Message\MessageInterface process ( Yiisoft\Queue\Message\MessageInterface $message, string $queueName, ?\Yiisoft\Queue\QueueProducerInterface $retryProducer null )
$message Yiisoft\Queue\Message\MessageInterface
$queueName string

Logical execution queue name.

$retryProducer ?\Yiisoft\Queue\QueueProducerInterface

                public function process(
    MessageInterface $message,
    string $queueName,
    ?QueueProducerInterface $retryProducer = null,
): MessageInterface;