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, setResult
public FailedIoFuture(IOException e)
e
- the failure causepublic IoFuture<T> cancel()
cancel
in interface Cancellable
cancel
in interface IoFuture<T>
cancel
in class AbstractIoFuture<T>
Copyright © 2016 JBoss by Red Hat. All rights reserved.