org.xsocket
Interface IEventHandler<T extends IHandle>

Package class diagram package IEventHandler

public interface IEventHandler<T extends IHandle>

Handles readiness events managed by a IDispatcher


Method Summary
 void onDispatcherCloseEvent(T handle)
          callback method for a dispatcher close event
 void onHandleReadableEvent(T handle)
          callback method for a handle readable event
 void onHandleRegisterEvent(T handle)
          callback method for the handle registered event
 void onHandleWriteableEvent(T handle)
          callback nmethod for a handle writeable event
 

Method Detail

onHandleRegisterEvent

void onHandleRegisterEvent(T handle)
                           throws java.io.IOException
callback method for the handle registered event

Parameters:
handle - the assoiated handle
Throws:
java.io.IOException - If some I/O error occurs

onHandleReadableEvent

void onHandleReadableEvent(T handle)
                           throws java.io.IOException
callback method for a handle readable event

Parameters:
handle - the assoiated handle
Throws:
java.io.IOException - If some I/O error occurs

onHandleWriteableEvent

void onHandleWriteableEvent(T handle)
                            throws java.io.IOException
callback nmethod for a handle writeable event

Parameters:
handle - the assoiated handle
Throws:
java.io.IOException - If some I/O error occurs

onDispatcherCloseEvent

void onDispatcherCloseEvent(T handle)
callback method for a dispatcher close event

Parameters:
handle - the assoiated handle