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