org.jboss.xnio
Interface FutureConnection<A,T>
- Type Parameters:
A
- the address typeT
- the channel type
- All Superinterfaces:
- IoFuture<T>
- All Known Implementing Classes:
- AbstractFutureConnection, FailedFutureConnection, FinishedFutureConnection
public interface FutureConnection<A,T>
- extends IoFuture<T>
Represents the future outcome of an in-progress connection operation. The local endpoint address is only known after
the operation begins, but may be available before the operation completes.
- Since:
- 1.2
getLocalAddress
A getLocalAddress()
- The local address of the future channel.
- Returns:
- the local address
- See Also:
BoundChannel.getLocalAddress()
cancel
FutureConnection<A,T> cancel()
- Cancel an operation. The actual cancel may be synchronous or asynchronous.
- Specified by:
cancel
in interface IoFuture<T>
- Returns:
- this
IoFuture
instance