PHP 인터페이스 Swarrot\Driver\MessageCacheInterface

파일 보기 프로젝트 열기: swarrot/swarrot

공개 메소드들

메소드 설명
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.

메소드 상세

pop() 공개 메소드

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
리턴 Swarrot\Broker\Message | null

push() 공개 메소드

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