@Override public AsyncFuture<OperationResponse> executeOperationAsync(Operation operation, OperationMessageHandler messageHandler) { return delegate.executeOperationAsync(operation, messageHandler); }
@Override public AsyncFuture<OperationResponse> executeOperationAsync(Operation operation, OperationMessageHandler messageHandler) { return masterProxy.executeOperationAsync(operation, messageHandler); }
@Override public AsyncFuture<OperationResponse> executeOperationAsync(Operation operation, OperationMessageHandler messageHandler) { return masterProxy.executeOperationAsync(operation, messageHandler); }
@Override public AsyncFuture<OperationResponse> executeOperationAsync(final Operation operation, final OperationMessageHandler messageHandler) { return context.runExFunction(o -> delegate.executeOperationAsync(operation, messageHandler), null); }
private AsyncFuture<OperationResponse> doExecuteOperationAsync(Operation operation, OperationMessageHandler messageHandler) { AsyncFuture<OperationResponse> task = wrapped.executeOperationAsync(operation, messageHandler); setLastHandlerTask(task); return task; }
private AsyncFuture<OperationResponse> doExecuteOperationAsync(Operation operation, OperationMessageHandler messageHandler) { AsyncFuture<OperationResponse> task = wrapped.executeOperationAsync(operation, messageHandler); setLastHandlerTask(task); return task; }
@Override public AsyncFuture<OperationResponse> executeOperationAsync(Operation operation, OperationMessageHandler messageHandler) { return provider.getDelegate().executeOperationAsync(operation, messageHandler); }
private OperationResponse doExecuteOperation(Operation operation, OperationMessageHandler messageHandler) throws IOException { AsyncFuture<OperationResponse> task; task = wrapped.executeOperationAsync(operation, messageHandler); setLastHandlerTask(task); try { return task.get(); } catch (InterruptedException ex) { Thread.currentThread().interrupt(); throw new IOException(ex); } catch (ExecutionException ex) { throw new IOException(ex); } }
private OperationResponse doExecuteOperation(Operation operation, OperationMessageHandler messageHandler) throws IOException { AsyncFuture<OperationResponse> task; task = wrapped.executeOperationAsync(operation, messageHandler); setLastHandlerTask(task); try { return task.get(); } catch (InterruptedException ex) { Thread.currentThread().interrupt(); throw new IOException(ex); } catch (ExecutionException ex) { throw new IOException(ex); } }
@Override public AsyncFuture<OperationResponse> executeOperationAsync(Operation operation, OperationMessageHandler messageHandler) { Contexts existing = contextSelector.pushLocal(); try { return delegate.executeOperationAsync(operation, messageHandler); } finally { contextSelector.restore(existing); } }
@Override public AsyncFuture<OperationResponse> executeOperationAsync(Operation operation, OperationMessageHandler messageHandler) { Contexts existing = contextSelector.pushLocal(); try { return delegate.executeOperationAsync(operation, messageHandler); } finally { contextSelector.restore(existing); } }