redis.clients.jedis
Class JedisPubSub

java.lang.Object
  extended by redis.clients.jedis.JedisPubSub

public abstract class JedisPubSub
extends Object


Constructor Summary
JedisPubSub()
           
 
Method Summary
 int getSubscribedChannels()
           
 boolean isSubscribed()
           
abstract  void onMessage(String channel, String message)
           
abstract  void onPMessage(String pattern, String channel, String message)
           
abstract  void onPSubscribe(String pattern, int subscribedChannels)
           
abstract  void onPUnsubscribe(String pattern, int subscribedChannels)
           
abstract  void onSubscribe(String channel, int subscribedChannels)
           
abstract  void onUnsubscribe(String channel, int subscribedChannels)
           
 void proceed(Client client, String... channels)
           
 void proceedWithPatterns(Client client, String... patterns)
           
 void psubscribe(String... patterns)
           
 void punsubscribe()
           
 void punsubscribe(String... patterns)
           
 void subscribe(String... channels)
           
 void unsubscribe()
           
 void unsubscribe(String... channels)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JedisPubSub

public JedisPubSub()
Method Detail

onMessage

public abstract void onMessage(String channel,
                               String message)

onPMessage

public abstract void onPMessage(String pattern,
                                String channel,
                                String message)

onSubscribe

public abstract void onSubscribe(String channel,
                                 int subscribedChannels)

onUnsubscribe

public abstract void onUnsubscribe(String channel,
                                   int subscribedChannels)

onPUnsubscribe

public abstract void onPUnsubscribe(String pattern,
                                    int subscribedChannels)

onPSubscribe

public abstract void onPSubscribe(String pattern,
                                  int subscribedChannels)

unsubscribe

public void unsubscribe()

unsubscribe

public void unsubscribe(String... channels)

subscribe

public void subscribe(String... channels)

psubscribe

public void psubscribe(String... patterns)

punsubscribe

public void punsubscribe()

punsubscribe

public void punsubscribe(String... patterns)

isSubscribed

public boolean isSubscribed()

proceedWithPatterns

public void proceedWithPatterns(Client client,
                                String... patterns)

proceed

public void proceed(Client client,
                    String... channels)

getSubscribedChannels

public int getSubscribedChannels()


Copyright © 2012. All Rights Reserved.