Abstract Class zhuravljov\yii\queue\Driver

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

Hide inherited properties

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

Public Methods

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

Hide inherited methods

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

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