/** * @param transactionCtx * @return <tt>true</tt> if we can continue request/response processing, * or <tt>false</tt> if future has been aborted */ boolean setHttpTransactionCtx( final HttpTransactionContext transactionCtx) { this.transactionCtx = transactionCtx; return !delegate.isDone(); } }
public boolean isDone() { return delegate.isDone(); }
/** * @param transactionCtx * @return <tt>true</tt> if we can continue request/response processing, * or <tt>false</tt> if future has been aborted */ boolean setHttpTransactionCtx( final HttpTransactionContext transactionCtx) { this.transactionCtx = transactionCtx; return !delegate.isDone(); } }
/** * @param transactionCtx * @return <tt>true</tt> if we can continue request/response processing, * or <tt>false</tt> if future has been aborted */ boolean setHttpTransactionCtx( final HttpTransactionContext transactionCtx) { this.transactionCtx = transactionCtx; return !delegate.isDone(); } }
/** * @param transactionCtx * @return <tt>true</tt> if we can continue request/response processing, * or <tt>false</tt> if future has been aborted */ boolean setHttpTransactionCtx( final HttpTransactionContext transactionCtx) { this.transactionCtx = transactionCtx; return !delegate.isDone(); } }
public boolean isDone() { return delegate.isDone(); }
public boolean isDone() { return delegate.isDone(); }
public boolean isDone() { return delegate.isDone(); }
public boolean isDone() { return delegate.isDone(); }
/** * Add the {@link Callable} listener, which will be notified once server * state switches to "SERVER_READY". * * @param listener {@link Callable} listener. */ final void addServerReadyListener(final Callable<Void> listener) { if (serverReadyFuture.isDone()) { try { listener.call(); } catch (Exception ignored) { } return; } serverReadyListeners.add(listener); if (serverReadyFuture.isDone() && serverReadyListeners.remove(listener)) { try { listener.call(); } catch (Exception ignored) { } } }
/** * Method closes the local file channel, and if download wasn't completed - * notify {@link FutureImpl} about download failure. * * @throws IOException If failed to close <em>localOutput</em>. */ private void close() throws IOException { final FileChannel localOutput = this.output; // close the local file channel if (localOutput != null) { localOutput.close(); } if (!completeFuture.isDone()) { //noinspection ThrowableInstanceNeverThrown completeFuture.failure(new IOException("Connection was closed")); } } }
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { if (!delegate.isCancelled() || !delegate.isDone()) { return delegate.get(timeout, unit); } else { return null; } }
@Override public void exceptionOccurred(FilterChainContext ctx, Throwable error) { if (!future.isDone()) { future.failure(error); } }
@Override public void exceptionOccurred(FilterChainContext ctx, Throwable error) { if (!future.isDone()) { future.failure(error); } }
@Override public NextAction handleClose(FilterChainContext ctx) throws IOException { if (!future.isDone()) { future.failure(new EOFException("handleClose was called")); } return ctx.getStopAction(); } }
@Override public NextAction handleClose(FilterChainContext ctx) throws IOException { if (!future.isDone()) { future.failure(new EOFException("handleClose was called")); } return ctx.getStopAction(); } }
@Override public NextAction handleRead(FilterChainContext ctx) throws IOException { Buffer b = ctx.getMessage(); if (!part1Future.isDone()) { part1Future.result(b.allowBufferDispose()); } else if (!part2Future.isDone()) { part2Future.result(b.isComposite() && b.allowBufferDispose()); } return ctx.getStopAction(b); } }
} while (!future.isDone());
} while (!future.isDone());
} while (!future.isDone());