Interface Yiisoft\Queue\Redis\QueueProviderInterface
| Implemented by | Yiisoft\Queue\Redis\QueueProvider |
|---|
Public Methods
Method Details
| public abstract boolean existInReserved ( integer $id ) | ||
| $id | integer | |
public function existInReserved(int $id): bool;
| public abstract boolean existInWaiting ( integer $id ) | ||
| $id | integer | |
public function existInWaiting(int $id): bool;
| public abstract integer pushMessage ( string $message, array $metadata = [] ) | ||
| $message | string | |
| $metadata | array | |
public function pushMessage(string $message, array $metadata = []): int;
| public abstract Yiisoft\Queue\Redis\Reserve|null reserve ( integer $timeout = 0 ) | ||
| $timeout | integer | |
| return | Yiisoft\Queue\Redis\Reserve|null |
Payload and id, or null if queue is empty. |
|---|---|---|
public function reserve(int $timeout = 0): ?Reserve;
| public abstract self withChannelName ( string $channelName ) | ||
| $channelName | string | |
public function withChannelName(string $channelName): self;
Signup or Login in order to comment.