Abstract Class zhuravljov\yii\queue\BaseDriver

Inheritancezhuravljov\yii\queue\BaseDriver » yii\base\Object
Subclasseszhuravljov\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

Hide inherited properties

Property Type Description Defined By
$queue zhuravljov\yii\queue\Queue zhuravljov\yii\queue\BaseDriver

Public Methods

Hide inherited 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

Hide inherited methods

Method Description Defined By
getQueue() zhuravljov\yii\queue\BaseDriver

Property Details

Hide inherited properties

$queue public property

Method Details

Hide inherited methods

__construct() public method

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);
}

            
getQueue() protected method

protected zhuravljov\yii\queue\Queue getQueue ( )

                protected function getQueue()
{
    return $this->_queue;
}

            
pop() public abstract method

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);

            
purge() public abstract method

Purges the storage.

public abstract void purge ( )

                abstract public function purge();

            
push() public abstract method

Pushes job to the storage.

public abstract mixed push ( $job )
$job zhuravljov\yii\queue\Job
return mixed

$message

                abstract public function push($job);

            
release() public abstract method

Releases the message.

public abstract void release ( $message )
$message

                abstract public function release($message);