PHP 클래스 Predis\PubSub\Consumer

저자: Daniele Alessandri ([email protected])
상속: extends AbstractConsumer
파일 보기 프로젝트 열기: nrk/predis 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Predis\ClientInterface $client, array $options = null )
getClient ( ) : Predis\ClientInterface Returns the underlying client instance used by the pub/sub iterator.

보호된 메소드들

메소드 설명
disconnect ( )
getValue ( )
writeRequest ( $method, $arguments )

비공개 메소드들

메소드 설명
checkCapabilities ( Predis\ClientInterface $client ) Checks if the client instance satisfies the required conditions needed to initialize a PUB/SUB consumer.
genericSubscribeInit ( string $subscribeAction ) This method shares the logic to handle both SUBSCRIBE and PSUBSCRIBE.

메소드 상세

__construct() 공개 메소드

public __construct ( Predis\ClientInterface $client, array $options = null )
$client Predis\ClientInterface Client instance used by the consumer.
$options array Options for the consumer initialization.

disconnect() 보호된 메소드

protected disconnect ( )

getClient() 공개 메소드

Returns the underlying client instance used by the pub/sub iterator.
public getClient ( ) : Predis\ClientInterface
리턴 Predis\ClientInterface

getValue() 보호된 메소드

protected getValue ( )

writeRequest() 보호된 메소드

protected writeRequest ( $method, $arguments )