public List<Object> getAll(int except) { List<Object> all = new ArrayList<Object>(); flush(); while (pipelinedCommands > except) { all.add(protocol.read(inputStream)); pipelinedCommands--; } return all; }
protected String getStatusCodeReply() { flush(); pipelinedCommands--; final byte[] resp = (byte[]) protocol.read(inputStream); if (null == resp) { return null; } else { return SafeEncoder.encode(resp); } }
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; }
public Object getOne() { flush(); pipelinedCommands--; return protocol.read(inputStream); }
@SuppressWarnings("unchecked") public List<Object> getObjectMultiBulkReply() { flush(); pipelinedCommands--; return (List<Object>) protocol.read(inputStream); }
public Long getIntegerReply() { flush(); pipelinedCommands--; return (Long) protocol.read(inputStream); }
public byte[] getBinaryBulkReply() { flush(); pipelinedCommands--; return (byte[]) protocol.read(inputStream); }
public void flushAsync(Collection<Response<?>> responses) { flush(); asyncResponses.addAll(responses); startResponsePump(); }
public Object getOne() { waitForAsyncReadsToComplete(); flush(); pipelinedCommands--; return Protocol.read(inputStream); }
@SuppressWarnings("deprecation") public Double getDoubleReply() { flush(); pipelinedCommands--; return Double.valueOf(new String((byte[]) Protocol.read(inputStream))); }