org.jboss.xnio
Class AbstractFutureConnection<A,T>
java.lang.Object
org.jboss.xnio.AbstractIoFuture<T>
org.jboss.xnio.AbstractFutureConnection<A,T>
- Type Parameters:
A
- the address typeT
- 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
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 |
AbstractFutureConnection
public AbstractFutureConnection()
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
Copyright © 2008 JBoss, a division of Red Hat, Inc.