PHP Class Predis\PubSub\Consumer

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

Public Methods

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

Protected Methods

Method Description
disconnect ( )
getValue ( )
writeRequest ( $method, $arguments )

Private Methods

Method 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 method

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 method

protected disconnect ( )

getClient() public method

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

getValue() protected method

protected getValue ( )

writeRequest() protected method

protected writeRequest ( $method, $arguments )