Final Class Yiisoft\Queue\Debug\QueueWorkerInterfaceProxy
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| process() | Yiisoft\ |
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $worker | Yiisoft\ |
|
| $collector | Yiisoft\ |
|
public function __construct(
private readonly WorkerInterface $worker,
private readonly QueueCollector $collector,
) {}
| public Yiisoft\ | ||
| $message | Yiisoft\ |
|
| $queueName | string | |
| $retryProducer | ?\ |
|
public function process(
MessageInterface $message,
string $queueName,
?QueueProducerInterface $retryProducer = null,
): MessageInterface {
$this->collector->collectWorkerProcessing($message, $queueName);
return $this->worker->process($message, $queueName, $retryProducer);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.