Method | Description | |
---|---|---|
__construct ( Predis\ClientInterface $client ) | ||
__destruct ( ) | Automatically stops the consumer when the garbage collector kicks in. | |
current ( ) : object | Returns the last message payload retrieved from the server. | |
key ( ) | ||
next ( ) | ||
rewind ( ) | ||
stop ( ) | Stops the consumer. Internally this is done by disconnecting from server since there is no way to terminate the stream initialized by MONITOR. | |
valid ( ) : boolean | Checks if the the consumer is still in a valid state to continue. |
Method | Description | |
---|---|---|
start ( ) | Initializes the consumer and sends the MONITOR command to the server. |
Method | Description | |
---|---|---|
assertClient ( Predis\ClientInterface $client ) | Checks if the passed client instance satisfies the required conditions needed to initialize a monitor consumer. | |
getValue ( ) : object | Waits for a new message from the server generated by MONITOR and returns it when available. |
public __construct ( Predis\ClientInterface $client ) | ||
$client | Predis\ClientInterface | Client instance used by the consumer. |
public __destruct ( ) |
protected start ( ) |
public stop ( ) |