- java.lang.Object
-
- org.xnio.AbstractIoFuture<T>
-
- org.xnio.FailedIoFuture<T>
-
- Type Parameters:
T
- the type of result that this operation produces
- All Implemented Interfaces:
Cancellable
,IoFuture<T>
public class FailedIoFuture<T> extends AbstractIoFuture<T>
An implementation ofIoFuture
that represents an immediately-failed operation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.xnio.IoFuture
IoFuture.HandlingNotifier<T,A>, IoFuture.Notifier<T,A>, IoFuture.Status
-
-
Constructor Summary
Constructors Constructor Description FailedIoFuture(java.io.IOException e)
Create an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoFuture<T>
cancel()
Cancel the operation.-
Methods inherited from class org.xnio.AbstractIoFuture
addCancelHandler, addNotifier, await, await, awaitInterruptibly, awaitInterruptibly, get, getException, getInterruptibly, getNotifierExecutor, getStatus, runNotifier, setCancelled, setException, setResult
-
-
-
-
Method Detail
-
cancel
public IoFuture<T> cancel()
Cancel the operation. Since this operation is always complete, this is a no-op.- Specified by:
cancel
in interfaceCancellable
- Specified by:
cancel
in interfaceIoFuture<T>
- Overrides:
cancel
in classAbstractIoFuture<T>
- Returns:
- this instance
-
-