예제 #1
0
    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;
      }
    }
예제 #2
0
 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);
 }
예제 #3
0
 public boolean isTimedOut() {
   return clientRequest.isTimedOut();
 }
예제 #4
0
 public void parseResponse(DataInputStream inputStream) {
   clientRequest.parseResponse(inputStream);
 }
예제 #5
0
 public boolean isCompleteResponse(ByteBuffer buffer) {
   return clientRequest.isCompleteResponse(buffer);
 }
예제 #6
0
 public T getResult() throws VoldemortException, IOException {
   return clientRequest.getResult();
 }
예제 #7
0
 public boolean formatRequest(DataOutputStream outputStream) {
   return clientRequest.formatRequest(outputStream);
 }