net.sf.cindy.session.dispatcher
Interface Dispatcher

All Known Implementing Classes:
DefaultDispatcher, DirectDispatcher

public interface Dispatcher

Dispatch session events to application.

Version:
$id$
Author:
Roger Chen

Method Summary
 void block()
          The dispatch thread may be blocked.
 void dispatch(Session session, java.lang.Runnable event)
          Dispatch event.
 

Method Detail

block

void block()
The dispatch thread may be blocked. When application invoke Future.completed method, the Future implementation will invoke this method to block current dispatch thread.


dispatch

void dispatch(Session session,
              java.lang.Runnable event)
Dispatch event.

Parameters:
session - session
event - event