T - the type of result that this operation producespublic class FailedIoFuture<T> extends AbstractIoFuture<T>
IoFuture that represents an immediately-failed operation.IoFuture.HandlingNotifier<T,A>, IoFuture.Notifier<T,A>, IoFuture.Status| Constructor and Description |
|---|
FailedIoFuture(IOException e)
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 FailedIoFuture(IOException e)
e - the failure causepublic 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.