0

Interface Yiisoft\Queue\Provider\QueueProducerProviderInterface

Implemented byYiisoft\Queue\Debug\QueueProducerProviderProxy, Yiisoft\Queue\Provider\CompositeQueueProvider, Yiisoft\Queue\Provider\PredefinedQueueProvider, Yiisoft\Queue\Provider\QueueFactoryProvider

Finds producer capabilities by logical queue name.

Method Details

Hide inherited methods

getProducer() public abstract method

public abstract Yiisoft\Queue\QueueProducerInterface getProducer ( string|\BackedEnum $queueName )
$queueName string|\BackedEnum
throws \Yiisoft\Queue\Provider\InvalidQueueConfigException\Yiisoft\Queue\Provider\QueueNotFoundException\Yiisoft\Queue\Provider\QueueProviderException

                public function getProducer(string|BackedEnum $queueName): QueueProducerInterface;

            
getProducerQueueNames() public abstract method

public abstract list getProducerQueueNames ( )
return list

Queue names which have a configured producer role.

                public function getProducerQueueNames(): array;

            
hasProducer() public abstract method

Whether this queue name has a configured producer role.

public abstract boolean hasProducer ( string|\BackedEnum $queueName )
$queueName string|\BackedEnum

                public function hasProducer(string|BackedEnum $queueName): bool;