示例#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 T getResult() throws VoldemortException, IOException {
   return clientRequest.getResult();
 }