PHP Interface Swarrot\Driver\MessageCacheInterface

Show file Open project: swarrot/swarrot

Public Methods

Method Description
pop ( string $queueName ) : Swarrot\Broker\Message | null Get the next message in line. Or nothing if there is no more in the cache.
push ( string $queueName, Swarrot\Broker\Message $message ) Pushes a message to the end of the cache.

Method Details

pop() public method

Get the next message in line. Or nothing if there is no more in the cache.
public pop ( string $queueName ) : Swarrot\Broker\Message | null
$queueName string
return Swarrot\Broker\Message | null

push() public method

Pushes a message to the end of the cache.
public push ( string $queueName, Swarrot\Broker\Message $message )
$queueName string
$message Swarrot\Broker\Message