PHP Class Mmoreram\RSQueueBundle\Services\Consumer

This class
Inheritance: extends Mmoreram\RSQueueBundle\Services\Abstracts\AbstractService
ファイルを表示 Open project: mmoreram/rsqueue-bundle Class Usage Examples

Public Methods

Method Description
consume ( Mixed $queueAlias, integer $timeout ) : Mixed Retrieve queue value, with a defined timeout

Method Details

consume() public method

This method accepts a single queue alias or an array with alias Every new element will be popped from one of defined queue Also, new Consumer event is triggered everytime a new element is popped
public consume ( Mixed $queueAlias, integer $timeout ) : Mixed
$queueAlias Mixed Alias of queue to consume from ( Can be an array of alias )
$timeout integer Timeout. By default, 0
return Mixed payload unserialized