Interface Yiisoft\Queue\Redis\QueueProviderInterface
| Implemented by | Yiisoft\Queue\Redis\QueueProvider |
|---|
Public Methods
Method Details
| public abstract existInReserved( integer $id ): boolean | ||
| $id | integer | |
public function existInReserved(int $id): bool;
| public abstract existInWaiting( integer $id ): boolean | ||
| $id | integer | |
public function existInWaiting(int $id): bool;
| public abstract pushMessage( string $message, array $metadata = [] ): integer | ||
| $message | string | |
| $metadata | array | |
public function pushMessage(string $message, array $metadata = []): int;
| public abstract reserve( integer $timeout = 0 ): Yiisoft\Queue\Redis\Reserve|null | ||
| $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 withChannelName( string $channelName ): self | ||
| $channelName | string | |
public function withChannelName(string $channelName): self;
Signup or Login in order to comment.