T - the type of result that this operation producespublic class FinishedIoFuture<T> extends AbstractIoFuture<T>
IoFuture that represents an immediately-successful operation.IoFuture.HandlingNotifier<T,A>, IoFuture.Notifier<T,A>, IoFuture.Status| Constructor and Description |
|---|
FinishedIoFuture(T result)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
IoFuture<T> |
cancel()
Cancel the operation.
|
addCancelHandler, addNotifier, await, await, awaitInterruptibly, awaitInterruptibly, get, getException, getInterruptibly, getNotifierExecutor, getStatus, runNotifier, setCancelled, setException, setResultpublic FinishedIoFuture(T result)
result - the operation resultpublic IoFuture<T> cancel()
cancel in interface Cancellablecancel in interface IoFuture<T>cancel in class AbstractIoFuture<T>Copyright © 2012 JBoss by Red Hat. All Rights Reserved.