com.lambdaworks.redis.pubsub
Interface RedisPubSubListener<K,V>

Type Parameters:
V - Value type.
All Known Implementing Classes:
RedisPubSubAdapter

public interface RedisPubSubListener<K,V>

Interface for redis pub/sub listeners.

Author:
Will Glozer

Method Summary
 void message(K pattern, K channel, V message)
          Message received from a pattern subscription.
 void message(K channel, V message)
          Message received from a channel subscription.
 void psubscribed(K pattern, long count)
          Subscribed to a pattern.
 void punsubscribed(K pattern, long count)
          Unsubscribed from a pattern.
 void subscribed(K channel, long count)
          Subscribed to a channel.
 void unsubscribed(K channel, long count)
          Unsubscribed from a channel.
 

Method Detail

message

void message(K channel,
             V message)
Message received from a channel subscription.

Parameters:
channel - Channel.
message - Message.

message

void message(K pattern,
             K channel,
             V message)
Message received from a pattern subscription.

Parameters:
pattern - Pattern.
channel - Channel.
message - Message.

subscribed

void subscribed(K channel,
                long count)
Subscribed to a channel.

Parameters:
channel - Channel
count - Subscription count.

psubscribed

void psubscribed(K pattern,
                 long count)
Subscribed to a pattern.

Parameters:
pattern - Pattern.
count - Subscription count.

unsubscribed

void unsubscribed(K channel,
                  long count)
Unsubscribed from a channel.

Parameters:
channel - Channel
count - Subscription count.

punsubscribed

void punsubscribed(K pattern,
                   long count)
Unsubscribed from a pattern.

Parameters:
pattern - Channel
count - Subscription count.


Copyright © 2013. All Rights Reserved.