public void complete() { try { clientRequest.complete(); Object result = clientRequest.getResult(); invokeCallback(result, (System.nanoTime() - startNs) / Time.NS_PER_MS); } catch (Exception e) { invokeCallback(e, (System.nanoTime() - startNs) / Time.NS_PER_MS); } finally { pool.checkin(destination, clientRequestExecutor); isComplete = true; } }
public void timeOut() { clientRequest.timeOut(); invokeCallback( new StoreTimeoutException("ClientRequestExecutor timed out. Cannot complete request."), (System.nanoTime() - startNs) / Time.NS_PER_MS); pool.checkin(destination, clientRequestExecutor); }
public boolean isTimedOut() { return clientRequest.isTimedOut(); }
public void parseResponse(DataInputStream inputStream) { clientRequest.parseResponse(inputStream); }
public boolean isCompleteResponse(ByteBuffer buffer) { return clientRequest.isCompleteResponse(buffer); }
public T getResult() throws VoldemortException, IOException { return clientRequest.getResult(); }
public boolean formatRequest(DataOutputStream outputStream) { return clientRequest.formatRequest(outputStream); }