Abstract Class zhuravljov\yii\queue\Driver
Inheritance | zhuravljov\yii\queue\Driver » yii\base\Object |
---|---|
Subclasses | zhuravljov\yii\queue\db\Driver, zhuravljov\yii\queue\redis\Driver, zhuravljov\yii\queue\sync\Driver |
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\yii\queue\Queue | zhuravljov\yii\queue\Driver |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | zhuravljov\yii\queue\Driver | |
pop() | Pops message and job from the storage. | zhuravljov\yii\queue\Driver |
purge() | Purges the storage. | zhuravljov\yii\queue\Driver |
push() | Pushes job to the storage. | zhuravljov\yii\queue\Driver |
release() | Releases the message. | zhuravljov\yii\queue\Driver |
Protected Methods
Method | Description | Defined By |
---|---|---|
getQueue() | zhuravljov\yii\queue\Driver |
Property Details
Method Details
public void __construct ( zhuravljov\yii\queue\Queue $queue, $config = [] ) | ||
$queue | zhuravljov\yii\queue\Queue | |
$config |
public function __construct(Queue $queue, $config = [])
{
$this->_queue = $queue;
parent::__construct($config);
}
protected zhuravljov\yii\queue\Queue getQueue ( ) |
protected function getQueue()
{
return $this->_queue;
}
Pops message and job from the storage.
public abstract boolean pop ( &$message, &$job ) | ||
$message | mixed | |
$job | zhuravljov\yii\queue\Job |
abstract public function pop(&$message, &$job);
Pushes job to the storage.
public abstract mixed push ( $job ) | ||
$job | zhuravljov\yii\queue\Job | |
return | mixed |
$message |
---|
abstract public function push($job);
Releases the message.
public abstract void release ( $message ) | ||
$message |
abstract public function release($message);