Phants Client for Redis™*
|
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) |
The methods of this interface reflect the message types generated by Redis while it is in "pub/sub" mode.
void OnMessage | ( | MessageParser | parser, |
string | channelName, | ||
string | messageContents | ||
) |
Called when a message of type "message" is received.
parser | The MessageParser that parsed this message. |
channelName | The name of the originating channel. |
messageContents | The message payload. |
Implemented in SubscriptionClient.
void OnPmessage | ( | MessageParser | parser, |
string | channelPattern, | ||
string | channelName, | ||
string | messageContents | ||
) |
Called when a message of type "pmessage" is received.
parser | The MessageParser that parsed this message. |
channelPattern | The channel pattern that was matched. |
channelName | The name of the originating channel. |
messageContents | The message payload. |
Implemented in SubscriptionClient.
void OnPsubscribed | ( | MessageParser | parser, |
string | channelPattern, | ||
long | numSubscriptions | ||
) |
Called when a message of type "psubscribed" is received.
parser | The MessageParser that parsed this message. |
channelPattern | The channel pattern that was matched. |
numSubscriptions | The 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.
parser | The MessageParser that parsed this message. |
channelPattern | The channel pattern that was matched. |
numSubscriptions | The 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.
parser | The MessageParser that parsed this message. |
channelName | The name of the originating channel. |
numSubscriptions | The 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.
parser | The MessageParser that parsed this message. |
channelName | The name of the originating channel. |
numSubscriptions | The number of channels this client is currently subscribed to. |
Implemented in SubscriptionClient.