org.jboss.xnio.nio
Class FutureUdpChannel

java.lang.Object
  extended by org.jboss.xnio.AbstractIoFuture<UdpChannel>
      extended by org.jboss.xnio.nio.FutureUdpChannel
All Implemented Interfaces:
IoFuture<UdpChannel>

public class FutureUdpChannel
extends AbstractIoFuture<UdpChannel>


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
 IoFuture<UdpChannel> cancel()
          Cancel an operation.
protected  boolean done()
           
protected  boolean setException(java.io.IOException exception)
          Set the exception for this operation.
 
Methods inherited from class org.jboss.xnio.AbstractIoFuture
addNotifier, await, await, awaitInterruptibly, awaitInterruptibly, finishCancel, get, getException, getInterruptibly, getNotifierExecutor, getStatus, runNotifier, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setException

protected boolean setException(java.io.IOException exception)
Description copied from class: AbstractIoFuture
Set the exception for this operation. Any threads blocking on this instance will be unblocked.

Overrides:
setException in class AbstractIoFuture<UdpChannel>
Parameters:
exception - the exception to set
Returns:
false if the operation was already completed, true otherwise

done

protected boolean done()

cancel

public IoFuture<UdpChannel> cancel()
Description copied from class: AbstractIoFuture
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 IoFuture<UdpChannel>
Overrides:
cancel in class AbstractIoFuture<UdpChannel>
Returns:
this IoFuture instance