| Constructor and Description |
|---|
WriteFuture() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setFailure(Throwable throwable)
Sets the failure result of message writing process.
|
void |
setResult(T result)
Sets the result of the message writing process.
|
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic void setResult(T result)
result - resultpublic void setFailure(Throwable throwable)
throwable - throwable.Copyright © 2012-2013. All Rights Reserved.