XNIO version 1.2.0.GA

org.jboss.xnio
Interface FutureConnection<A,T>

Type Parameters:
A - the address type
T - 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.xnio.IoFuture
IoFuture.HandlingNotifier<T,A>, IoFuture.Notifier<T,A>, IoFuture.Status
 
Method Summary
 FutureConnection<A,T> cancel()
          Cancel an operation.
 A getLocalAddress()
          The local address of the future channel.
 
Methods inherited from interface org.jboss.xnio.IoFuture
addNotifier, await, await, awaitInterruptibly, awaitInterruptibly, get, getException, getInterruptibly, getStatus
 

Method Detail

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

XNIO version 1.2.0.GA

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