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