org.xsocket.stream
Interface IHandler

Package class diagram package IHandler
All Known Subinterfaces:
IConnectHandler, IDataHandler, IDisconnectHandler, ITimeoutHandler
All Known Implementing Classes:
HandlerChain

public interface IHandler

A marker interface for a handler

Specific handlers defines on<event> callback methods.
By default the callback methods are connection-scoped synchronized. For the same connection instance the callback method will be called in a serialized manner. The synchronization behavior of handler can be controlled by the Synchronized annotation.