Abstract Class zhuravljov\yii\queue\BaseDriver
Inheritance | zhuravljov\yii\queue\BaseDriver » yii\base\Object |
---|---|
Subclasses | zhuravljov\yii\queue\db\Driver, zhuravljov\yii\queue\sync\Driver |
Source Code | https://github.com/yiisoft/yii2-queue/blob/master/src/BaseDriver.php |
Queue driver interface
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$queue | zhuravljov\yii\queue\Queue | zhuravljov\yii\queue\BaseDriver |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | zhuravljov\yii\queue\BaseDriver | |
pop() | Pops message and job from the storage. | zhuravljov\yii\queue\BaseDriver |
purge() | Purges the storage. | zhuravljov\yii\queue\BaseDriver |
push() | Pushes job to the storage. | zhuravljov\yii\queue\BaseDriver |
release() | Releases the message. | zhuravljov\yii\queue\BaseDriver |
Protected Methods
Method | Description | Defined By |
---|---|---|
getQueue() | zhuravljov\yii\queue\BaseDriver |
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);