All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.JedisMonitor Maven / Gradle / Ivy

The newest version!
package redis.clients.jedis;

public abstract class JedisMonitor {

  protected Connection client;

  public void proceed(Connection client) {
    this.client = client;
    this.client.setTimeoutInfinite();
    do {
      String command = client.getBulkReply();
      onCommand(command);
    } while (client.isConnected());
  }

  public abstract void onCommand(String command);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy