Abstract Class zhuravljov\yii\queue\Driver
| Inheritance | zhuravljov\ |
|---|---|
| Subclasses | zhuravljov\ |
| Source Code | https://github.com/yiisoft/yii2-queue/blob/master/src/Driver.php |
Queue driver interface
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $queue | zhuravljov\ |
zhuravljov\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | zhuravljov\ |
|
| pop() | Pops message and job from the storage. | zhuravljov\ |
| purge() | Purges the storage. | zhuravljov\ |
| push() | Pushes job to the storage. | zhuravljov\ |
| release() | Releases the message. | zhuravljov\ |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| getQueue() | zhuravljov\ |
Property Details
Method Details
| public __construct ( zhuravljov\ | ||
| $queue | zhuravljov\ |
|
| $config | mixed | |
public function __construct(Queue $queue, $config = [])
{
$this->_queue = $queue;
parent::__construct($config);
}
| protected zhuravljov\ |
protected function getQueue()
{
return $this->_queue;
}
Pops message and job from the storage.
| public abstract boolean pop ( mixed &$message, zhuravljov\ | ||
| $message | mixed | |
| $job | zhuravljov\ |
|
abstract public function pop(&$message, &$job);
Pushes job to the storage.
| public abstract mixed push ( zhuravljov\ | ||
| $job | zhuravljov\ |
|
| return | mixed |
$message |
|---|---|---|
abstract public function push($job);