0

Interface Yiisoft\Queue\QueueProducerInterface

Implemented byYiisoft\Queue\AsyncQueueProducer, Yiisoft\Queue\Debug\QueueProducerDecorator, Yiisoft\Queue\Stubs\StubQueueProducer, Yiisoft\Queue\SyncQueueProducer

Produces messages and obtains their delivery status.

Public Methods

Hide inherited methods

Method Description Defined By
getQueueName() Returns the logical queue name. Yiisoft\Queue\QueueProducerInterface
push() Pushes a message and returns its possibly enriched representation. Yiisoft\Queue\QueueProducerInterface
status() Returns the status of a message ID. Yiisoft\Queue\QueueProducerInterface

Method Details

Hide inherited methods

getQueueName() public abstract method

Returns the logical queue name.

public abstract string getQueueName ( )

                public function getQueueName(): string;

            
push() public abstract method

Pushes a message and returns its possibly enriched representation.

public abstract Yiisoft\Queue\Message\MessageInterface push ( Yiisoft\Queue\Message\MessageInterface $message )
$message Yiisoft\Queue\Message\MessageInterface

                public function push(MessageInterface $message): MessageInterface;

            
status() public abstract method

Returns the status of a message ID.

public abstract \Yiisoft\Queue\MessageStatus status ( string|integer $id )
$id string|integer

                public function status(string|int $id): MessageStatus;