Add alternative pipeline usage
This commit is contained in:
@@ -4,11 +4,11 @@ public abstract class JedisMonitor {
|
||||
protected Client client;
|
||||
|
||||
public void proceed(Client client) {
|
||||
this.client = client;
|
||||
do {
|
||||
String command = client.getBulkReply();
|
||||
onCommand(command);
|
||||
} while (client.isConnected());
|
||||
this.client = client;
|
||||
do {
|
||||
String command = client.getBulkReply();
|
||||
onCommand(command);
|
||||
} while (client.isConnected());
|
||||
}
|
||||
|
||||
public abstract void onCommand(String command);
|
||||
|
||||
Reference in New Issue
Block a user