Exemple #1
0
 public void unsubscribe() {
   if (client == null) {
     throw new JedisConnectionException("JedisPubSub was not subscribed to a Jedis instance.");
   }
   client.unsubscribe();
   client.flush();
 }
Exemple #2
0
 public void proceed(Client client, String... channels) {
   this.client = client;
   client.subscribe(channels);
   client.flush();
   process(client);
 }
Exemple #3
0
 public void proceedWithPatterns(Client client, String... patterns) {
   this.client = client;
   client.psubscribe(patterns);
   client.flush();
   process(client);
 }
Exemple #4
0
 public void punsubscribe(String... patterns) {
   client.punsubscribe(patterns);
   client.flush();
 }
Exemple #5
0
 public void punsubscribe() {
   client.punsubscribe();
   client.flush();
 }
Exemple #6
0
 public void subscribe(String... channels) {
   client.subscribe(channels);
   client.flush();
 }