XNIO version 1.2.0.GA

org.jboss.xnio
Class FailedIoFuture<T>

java.lang.Object
  extended by org.jboss.xnio.AbstractIoFuture<T>
      extended by org.jboss.xnio.FailedIoFuture<T>
Type Parameters:
T - the type of result that this operation produces
All Implemented Interfaces:
IoFuture<T>
Direct Known Subclasses:
FailedFutureConnection

public class FailedIoFuture<T>
extends AbstractIoFuture<T>

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.xnio.IoFuture
IoFuture.HandlingNotifier<T,A>, IoFuture.Notifier<T,A>, IoFuture.Status
 
Constructor Summary
FailedIoFuture(IOException e)
          Create an instance.
 
Method Summary
 IoFuture<T> cancel()
          Cancel the operation.
 
Methods inherited from class org.jboss.xnio.AbstractIoFuture
addNotifier, await, await, awaitInterruptibly, awaitInterruptibly, finishCancel, get, getException, getInterruptibly, getNotifierExecutor, getStatus, runNotifier, setException, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FailedIoFuture

public FailedIoFuture(IOException e)
Create an instance.

Parameters:
e - the failure cause
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 interface IoFuture<T>
Overrides:
cancel in class AbstractIoFuture<T>
Returns:
this instance

XNIO version 1.2.0.GA

Copyright © 2008 JBoss, a division of Red Hat, Inc.