PHP Class Elgg\Queue\DatabaseQueue

WARNING: API IN FLUX. DO NOT USE DIRECTLY.
Since: 1.9.0
Inheritance: implements Elgg\Queue\Queue
Datei anzeigen Open project: elgg/elgg

Protected Properties

Property Type Description
$db Database adapter
$name Name of the queue
$workerId The identifier of the worker pulling from the queue

Public Methods

Method Description
__construct ( string $name, Database $db ) Create a queue
clear ( )
dequeue ( )
enqueue ( $item )
size ( )

Method Details

__construct() public method

Create a queue
public __construct ( string $name, Database $db )
$name string Name of the queue. Must be less than 256 characters.
$db Elgg\Database Database adapter

clear() public method

public clear ( )

dequeue() public method

public dequeue ( )

enqueue() public method

public enqueue ( $item )

size() public method

public size ( )

Property Details

$db protected_oe property

Database adapter
protected $db

$name protected_oe property

Name of the queue
protected $name

$workerId protected_oe property

The identifier of the worker pulling from the queue
protected $workerId