V - public abstract class AbstractFuture<V> extends Object implements Future<V>
Future implementation which does not allow for cancellation.| Constructor and Description |
|---|
AbstractFuture() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
If the cancelation was successful it will fail the future with an
CancellationException. |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, addListeners, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cause, getNow, isSuccess, removeListener, removeListeners, sync, syncUninterruptiblypublic boolean cancel(boolean mayInterruptIfRunning)
FutureCancellationException.public boolean isCancelled()
isCancelled in interface Future<V>public V get() throws InterruptedException, ExecutionException
get in interface Future<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2008-2013 The Netty Project. All Rights Reserved.