1   package org.mortbay.io;
2   
3   public interface AsyncEndPoint extends EndPoint
4   {
5       /* ------------------------------------------------------------ */
6       /**
7        * Dispatch the endpoint to a thread to attend to it.
8        * 
9        * @return True If the dispatched succeeded
10       */
11      public boolean dispatch();
12      
13      /**
14       * @return true if this endpoint can accept a dispatch. False if the 
15       * endpoint cannot accept a dispatched (eg is suspended or already dispatched)
16       */
17      public boolean isReadyForDispatch();
18      
19  }