XNIO version 1.2.1.GA

org.jboss.xnio
Class AbstractFutureConnection<A,T>

java.lang.Object
  extended by org.jboss.xnio.AbstractIoFuture<T>
      extended by org.jboss.xnio.AbstractFutureConnection<A,T>
Type Parameters:
A - the address type
T - the channel type
All Implemented Interfaces:
FutureConnection<A,T>, IoFuture<T>

public abstract class AbstractFutureConnection<A,T>
extends AbstractIoFuture<T>
implements FutureConnection<A,T>

Convenience abstract class for future connections.

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
 
Constructor Summary
AbstractFutureConnection()
           
 
Method Summary
 FutureConnection<A,T> cancel()
          Cancel an 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
 
Methods inherited from interface org.jboss.xnio.FutureConnection
getLocalAddress
 
Methods inherited from interface org.jboss.xnio.IoFuture
addNotifier, await, await, awaitInterruptibly, awaitInterruptibly, get, getException, getInterruptibly, getStatus
 

Constructor Detail

AbstractFutureConnection

public AbstractFutureConnection()
Method Detail

cancel

public FutureConnection<A,T> cancel()
Cancel an operation. The actual cancel may be synchronous or asynchronous. Implementors will use this method to initiate the cancel; use the AbstractIoFuture.finishCancel() method to indicate that the cancel was successful. The default implementation does nothing.

Specified by:
cancel in interface FutureConnection<A,T>
Specified by:
cancel in interface IoFuture<T>
Overrides:
cancel in class AbstractIoFuture<T>
Returns:
this IoFuture instance

XNIO version 1.2.1.GA

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