@Override public boolean done(T result) { try { return ActiveOperationImpl.this.setResult(result); } finally { handler.removeActiveOperation(operationId); } }
@Override public boolean done(T result) { try { return ActiveOperationImpl.this.setResult(result); } finally { handler.removeActiveOperation(operationId); } }
@Override public boolean failed(Throwable t) { try { boolean failed = ActiveOperationImpl.this.setFailed(t); if(failed) { ProtocolLogger.ROOT_LOGGER.debugf(t, "active-op (%d) failed %s", operationId, attachment); } return failed; } finally { handler.removeActiveOperation(operationId); } }
@Override public boolean failed(Throwable t) { try { boolean failed = ActiveOperationImpl.this.setFailed(t); if(failed) { ProtocolLogger.ROOT_LOGGER.debugf(t, "active-op (%d) failed %s", operationId, attachment); } return failed; } finally { handler.removeActiveOperation(operationId); } }
@Override public void handleCancelled(AsyncFuture<? extends T> asyncFuture, Object attachment) { handler.removeActiveOperation(operationId); callback.cancelled(); ProtocolLogger.ROOT_LOGGER.debugf("cancelled operation (%d) attachment: (%s) handler: %s.", getOperationId(), getAttachment(), handler); } }, null);
@Override public void handleCancelled(AsyncFuture<? extends T> asyncFuture, Object attachment) { handler.removeActiveOperation(operationId); callback.cancelled(); ProtocolLogger.ROOT_LOGGER.debugf("cancelled operation (%d) attachment: (%s) handler: %s.", getOperationId(), getAttachment(), handler); } }, null);