Interface Yiisoft\Queue\Provider\QueueProviderInterface
QueueProviderInterface provides a way to get a queue instance by channel name.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| get() | Find a queue by channel name and returns it. | Yiisoft\Queue\Provider\QueueProviderInterface |
| has() | Check if a queue with the specified channel name exists. | Yiisoft\Queue\Provider\QueueProviderInterface |
Constants
| Constant | Value | Description | Defined By |
|---|---|---|---|
| DEFAULT_CHANNEL | 'yii-queue' | Yiisoft\Queue\Provider\QueueProviderInterface |
Method Details
Find a queue by channel name and returns it.
| public abstract get( \BackedEnum|string $channel ): Yiisoft\Queue\QueueInterface | ||
| $channel | \BackedEnum|string |
Channel name. |
| return | Yiisoft\Queue\QueueInterface |
Queue instance. |
|---|---|---|
| throws | Yiisoft\Queue\Provider\InvalidQueueConfigException |
If the queue configuration is invalid. |
| throws | Yiisoft\Queue\Provider\ChannelNotFoundException |
If the channel is not found. |
| throws | Yiisoft\Queue\Provider\QueueProviderException |
If the queue provider fails to provide a queue. |
public function get(string|BackedEnum $channel): QueueInterface;
Signup or Login in order to comment.