Refactored to support object multi bulk reply

This commit is contained in:
Jonathan Leibiusky
2010-07-07 22:55:35 -03:00
parent 81cc2cec8e
commit 20acb5bc60
7 changed files with 114 additions and 81 deletions

View File

@@ -80,7 +80,7 @@ public class Connection {
}
protected String getStatusCodeReply() throws JedisException {
return protocol.getSingleLineReply(inputStream);
return protocol.getStatusCodeReply(inputStream);
}
public String getBulkReply() throws JedisException {
@@ -91,7 +91,13 @@ public class Connection {
return protocol.getIntegerReply(inputStream);
}
@SuppressWarnings("unchecked")
public List<String> getMultiBulkReply() throws JedisException {
return (List<String>) (List<?>) protocol.getMultiBulkReply(inputStream);
}
public List<Object> getObjectMultiBulkReply() throws JedisException {
return protocol.getMultiBulkReply(inputStream);
}
}