Top Description Constructors Methods
org.xnio

public Class FailedIoFuture<T>

extends AbstractIoFuture<T>
Class Inheritance
Type Parameters
<T>
the type of result that this operation produces
Imports
java.io.IOException

An implementation of IoFuture that represents an immediately-failed operation.

Constructor Summary

AccessConstructor and Description
public
FailedIoFuture(IOException
the failure cause
e
)

Create an instance.

Method Summary

Modifier and TypeMethod and Description
public IoFuture<T>

Returns:

this instance
cancel
()

Overrides org.xnio.AbstractIoFuture.cancel.

Implements org.xnio.IoFuture.cancel.

Cancel the operation.

Inherited from org.xnio.AbstractIoFuture:
addCancelHandleraddNotifierawaitawaitawaitInterruptiblyawaitInterruptiblygetgetExceptiongetInterruptiblygetNotifierExecutorgetStatusrunNotifiersetCancelledsetExceptionsetResult

Constructor Detail

FailedIoFutureback to summary
public FailedIoFuture(IOException e)

Create an instance.

Parameters
e:IOException

the failure cause

Method Detail

cancelback to summary
public IoFuture<T> cancel()

Overrides org.xnio.AbstractIoFuture.cancel.

Implements org.xnio.IoFuture.cancel.

Cancel the operation. Since this operation is always complete, this is a no-op.

Returns:IoFuture<T>

this instance