PHP Class Predis\PubSub\Consumer

Author: Daniele Alessandri ([email protected])
Inheritance: extends AbstractConsumer
Afficher le fichier Open project: nrk/predis Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Predis\ClientInterface $client, array $options = null )
getClient ( ) : Predis\ClientInterface Returns the underlying client instance used by the pub/sub iterator.

Méthodes protégées

Méthode Description
disconnect ( )
getValue ( )
writeRequest ( $method, $arguments )

Private Methods

Méthode Description
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.

Method Details

__construct() public méthode

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 méthode

protected disconnect ( )

getClient() public méthode

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

getValue() protected méthode

protected getValue ( )

writeRequest() protected méthode

protected writeRequest ( $method, $arguments )