@Override public void onWritePossible() throws Exception { future.result(TRUE); }
public void done(V result) { delegate.result(result); }
@Override public void shutdownForced() { serverConnection = null; if (shutdownFuture != null) { shutdownFuture.result(NetworkListener.this); } } });
@Override public void shutdownForced() { serverConnection = null; if (shutdownFuture != null) { shutdownFuture.result(NetworkListener.this); } } });
@Override public void shutdownForced() { serverConnection = null; if (shutdownFuture != null) { shutdownFuture.result(NetworkListener.this); } } });
@Override public void onClosed(Closeable closeable, ICloseType type) throws IOException { final CloseReason cr = closeReason; assert cr != null; f.result(cr); } });
@Override public void onClosed(Closeable closeable, ICloseType type) throws IOException { final CloseReason cr = closeReason; assert cr != null; f.result(cr); } });
@Override public void shutdownForced() { serverConnection = null; if (shutdownFuture != null) { shutdownFuture.result(NetworkListener.this); } } });
@Override public void shutdownForced() { serverConnection = null; if (shutdownFuture != null) { shutdownFuture.result(NetworkListener.this); } } });
@Override public void onClosed(Closeable closeable, @SuppressWarnings("deprecation") ICloseType type) throws IOException { final CloseReason cr = closeReason; assert cr != null; f.result(cr); } });
@Override public void onClosed(Closeable closeable, @SuppressWarnings("deprecation") ICloseType type) throws IOException { final CloseReason cr = closeReason; assert cr != null; f.result(cr); } });
@Override @SuppressWarnings("unchecked") public void completed(E result) { if (result instanceof Copyable) { result = (E) ((Copyable) result).copy(); } future.result(result); }
@Override public void completed(final Object result) { if (completionHandler != null) { completionHandler.completed(frame); } localFuture.result(frame); }
@Override public void completed(WriteResult result) { output.sentBytesCounter += result.getWrittenSize(); int totalSentBytes = output.sentBytesCounter; if (completionHandler != null) { completionHandler.completed(totalSentBytes); } if (future != null) { future.result(totalSentBytes); } }
@Override public void completed(WriteResult result) { output.sentBytesCounter += result.getWrittenSize(); int totalSentBytes = output.sentBytesCounter; if (completionHandler != null) { completionHandler.completed(totalSentBytes); } if (future != null) { future.result(totalSentBytes); } }
@Override public void completed(B result) { final A adaptedResult = adapt(result); if (completionHandler != null) { completionHandler.completed(adaptedResult); } if (future != null) { future.result(adaptedResult); } }
@Override public void completed(WriteResult result) { output.sentBytesCounter += result.getWrittenSize(); int totalSentBytes = output.sentBytesCounter; if (completionHandler != null) { completionHandler.completed(totalSentBytes); } if (future != null) { future.result(totalSentBytes); } }
@Override public void completed(WriteResult result) { output.sentBytesCounter += result.getWrittenSize(); int totalSentBytes = output.sentBytesCounter; if (completionHandler != null) { completionHandler.completed(totalSentBytes); } if (future != null) { future.result(totalSentBytes); } }
@Override public void completed(WriteResult result) { output.sentBytesCounter += result.getWrittenSize(); int totalSentBytes = output.sentBytesCounter; if (completionHandler != null) { completionHandler.completed(totalSentBytes); } if (future != null) { future.result(totalSentBytes); } }
@Override public void completed(WriteResult result) { output.sentBytesCounter += result.getWrittenSize(); int totalSentBytes = output.sentBytesCounter; if (completionHandler != null) { completionHandler.completed(totalSentBytes); } if (future != null) { future.result(totalSentBytes); } }