Exemple #1
0
 public List<Object> getAll(int except) {
   List<Object> all = new ArrayList<Object>();
   flush();
   while (pipelinedCommands > except) {
     all.add(protocol.read(inputStream));
     pipelinedCommands--;
   }
   return all;
 }
Exemple #2
0
 protected String getStatusCodeReply() {
   flush();
   pipelinedCommands--;
   final byte[] resp = (byte[]) protocol.read(inputStream);
   if (null == resp) {
     return null;
   } else {
     return SafeEncoder.encode(resp);
   }
 }
Exemple #3
0
 public List<Object> getAll(int except) {
   List<Object> all = new ArrayList<Object>();
   flush();
   while (pipelinedCommands > except) {
     try {
       all.add(Protocol.read(inputStream));
     } catch (JedisDataException e) {
       all.add(e);
     }
     pipelinedCommands--;
   }
   return all;
 }
Exemple #4
0
 public Object getOne() {
   flush();
   pipelinedCommands--;
   return protocol.read(inputStream);
 }
Exemple #5
0
 @SuppressWarnings("unchecked")
 public List<Object> getObjectMultiBulkReply() {
   flush();
   pipelinedCommands--;
   return (List<Object>) protocol.read(inputStream);
 }
Exemple #6
0
 public Long getIntegerReply() {
   flush();
   pipelinedCommands--;
   return (Long) protocol.read(inputStream);
 }
Exemple #7
0
 public byte[] getBinaryBulkReply() {
   flush();
   pipelinedCommands--;
   return (byte[]) protocol.read(inputStream);
 }
Exemple #8
0
 public void flushAsync(Collection<Response<?>> responses) {
   flush();
   asyncResponses.addAll(responses);
   startResponsePump();
 }
Exemple #9
0
 public Object getOne() {
   waitForAsyncReadsToComplete();
   flush();
   pipelinedCommands--;
   return Protocol.read(inputStream);
 }
Exemple #10
0
 @SuppressWarnings("deprecation")
 public Double getDoubleReply() {
   flush();
   pipelinedCommands--;
   return Double.valueOf(new String((byte[]) Protocol.read(inputStream)));
 }