org.eclipse.jetty.io
Interface AsyncEndPoint

All Superinterfaces:
EndPoint
All Known Implementing Classes:
NetworkTrafficSelectChannelEndPoint, SelectChannelEndPoint, SslSelectChannelEndPoint

public interface AsyncEndPoint
extends EndPoint


Method Summary
 void cancelIdle()
          Cancel a call to the idle timeout
 void dispatch()
          Dispatch the endpoint to a thread to attend to it.
 boolean isReadyForDispatch()
           
 void scheduleIdle()
          Schedule a call to the idle timeout
 void scheduleWrite()
          Schedule a write dispatch.
 
Methods inherited from interface org.eclipse.jetty.io.EndPoint
blockReadable, blockWritable, close, fill, flush, flush, flush, getLocalAddr, getLocalHost, getLocalPort, getMaxIdleTime, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isBufferingInput, isBufferingOutput, isBufferred, isInputShutdown, isOpen, isOutputShutdown, setMaxIdleTime, shutdownInput, shutdownOutput
 

Method Detail

dispatch

void dispatch()
Dispatch the endpoint to a thread to attend to it.


isReadyForDispatch

boolean isReadyForDispatch()
Returns:
true if this endpoint can accept a dispatch. False if the endpoint cannot accept a dispatched (eg is suspended or already dispatched)

scheduleWrite

void scheduleWrite()
Schedule a write dispatch. Set the endpoint to not be writable and schedule a dispatch when it becomes writable.


scheduleIdle

void scheduleIdle()
Schedule a call to the idle timeout


cancelIdle

void cancelIdle()
Cancel a call to the idle timeout



Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.