Phants Client for Redis™*
Public Member Functions | List of all members
ResponseProcessor Interface Reference
Inheritance diagram for ResponseProcessor:
Inheritance graph
[legend]

Public Member Functions

void OnSubscribed (MessageParser parser, string channelName, long numSubscriptions)
 
void OnUnsubscribed (MessageParser parser, string channelName, long numSubscriptions)
 
void OnPsubscribed (MessageParser parser, string channelPattern, long numSubscriptions)
 
void OnPunsubscribed (MessageParser parser, string channelPattern, long numSubscriptions)
 
void OnMessage (MessageParser parser, string channelName, string messageContents)
 
void OnPmessage (MessageParser parser, string channelPattern, string channelName, string messageContents)
 

Detailed Description

The methods of this interface reflect the message types generated by Redis while it is in "pub/sub" mode.

Member Function Documentation

void OnMessage ( MessageParser  parser,
string  channelName,
string  messageContents 
)

Called when a message of type "message" is received.

Parameters
parserThe MessageParser that parsed this message.
channelNameThe name of the originating channel.
messageContentsThe message payload.

Implemented in SubscriptionClient.

void OnPmessage ( MessageParser  parser,
string  channelPattern,
string  channelName,
string  messageContents 
)

Called when a message of type "pmessage" is received.

Parameters
parserThe MessageParser that parsed this message.
channelPatternThe channel pattern that was matched.
channelNameThe name of the originating channel.
messageContentsThe message payload.

Implemented in SubscriptionClient.

void OnPsubscribed ( MessageParser  parser,
string  channelPattern,
long  numSubscriptions 
)

Called when a message of type "psubscribed" is received.

Parameters
parserThe MessageParser that parsed this message.
channelPatternThe channel pattern that was matched.
numSubscriptionsThe number of channels this client is currently subscribed to.

Implemented in SubscriptionClient.

void OnPunsubscribed ( MessageParser  parser,
string  channelPattern,
long  numSubscriptions 
)

Called when a message of type "punsubscribed" is received.

Parameters
parserThe MessageParser that parsed this message.
channelPatternThe channel pattern that was matched.
numSubscriptionsThe number of channels this client is currently subscribed to.

Implemented in SubscriptionClient.

void OnSubscribed ( MessageParser  parser,
string  channelName,
long  numSubscriptions 
)

Called when a message of type "subscribed" is received.

Parameters
parserThe MessageParser that parsed this message.
channelNameThe name of the originating channel.
numSubscriptionsThe number of channels this client is currently subscribed to.

Implemented in SubscriptionClient.

void OnUnsubscribed ( MessageParser  parser,
string  channelName,
long  numSubscriptions 
)

Called when a message of type "unsubscribed" is received.

Parameters
parserThe MessageParser that parsed this message.
channelNameThe name of the originating channel.
numSubscriptionsThe number of channels this client is currently subscribed to.

Implemented in SubscriptionClient.


The documentation for this interface was generated from the following file: