org.jboss.xnio
Class FailedFutureConnection<A,T>
java.lang.Object
org.jboss.xnio.AbstractIoFuture<T>
org.jboss.xnio.FailedIoFuture<T>
org.jboss.xnio.FailedFutureConnection<A,T>
- Type Parameters:
A
- the address typeT
- the type of result that this operation produces
- All Implemented Interfaces:
- FutureConnection<A,T>, IoFuture<T>
public class FailedFutureConnection<A,T>
- extends FailedIoFuture<T>
- implements FutureConnection<A,T>
An implementation of FutureConnection
that represents an immediately-failed operation.
- Since:
- 1.2
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 |
FailedFutureConnection
public FailedFutureConnection(IOException e,
A address)
- Create an instance.
- Parameters:
e
- the failure causeaddress
- the address to return
getLocalAddress
public A getLocalAddress()
- The local address of the future channel.
- Specified by:
getLocalAddress
in interface FutureConnection<A,T>
- Returns:
- the local address
- See Also:
BoundChannel.getLocalAddress()
cancel
public FutureConnection<A,T> cancel()
- Cancel the operation. Since this operation is always complete, this is a no-op.
- Specified by:
cancel
in interface FutureConnection<A,T>
- Specified by:
cancel
in interface IoFuture<T>
- Overrides:
cancel
in class FailedIoFuture<T>
- Returns:
- this instance
Copyright © 2008 JBoss, a division of Red Hat, Inc.