public class BaseHandler extends java.lang.Object implements CoreHandler
Constructor and Description |
---|
BaseHandler() |
public static Handler getHandler(Extendable ext)
public static void setHandler(Extendable ext, Handler handler)
public void onConnectionInit(Event e)
onConnectionInit
in interface CoreHandler
public void onConnectionLocalOpen(Event e)
onConnectionLocalOpen
in interface CoreHandler
public void onConnectionRemoteOpen(Event e)
onConnectionRemoteOpen
in interface CoreHandler
public void onConnectionLocalClose(Event e)
onConnectionLocalClose
in interface CoreHandler
public void onConnectionRemoteClose(Event e)
onConnectionRemoteClose
in interface CoreHandler
public void onConnectionBound(Event e)
onConnectionBound
in interface CoreHandler
public void onConnectionUnbound(Event e)
onConnectionUnbound
in interface CoreHandler
public void onConnectionFinal(Event e)
onConnectionFinal
in interface CoreHandler
public void onSessionInit(Event e)
onSessionInit
in interface CoreHandler
public void onSessionLocalOpen(Event e)
onSessionLocalOpen
in interface CoreHandler
public void onSessionRemoteOpen(Event e)
onSessionRemoteOpen
in interface CoreHandler
public void onSessionLocalClose(Event e)
onSessionLocalClose
in interface CoreHandler
public void onSessionRemoteClose(Event e)
onSessionRemoteClose
in interface CoreHandler
public void onSessionFinal(Event e)
onSessionFinal
in interface CoreHandler
public void onLinkInit(Event e)
onLinkInit
in interface CoreHandler
public void onLinkLocalOpen(Event e)
onLinkLocalOpen
in interface CoreHandler
public void onLinkRemoteOpen(Event e)
onLinkRemoteOpen
in interface CoreHandler
public void onLinkLocalDetach(Event e)
onLinkLocalDetach
in interface CoreHandler
public void onLinkRemoteDetach(Event e)
onLinkRemoteDetach
in interface CoreHandler
public void onLinkLocalClose(Event e)
onLinkLocalClose
in interface CoreHandler
public void onLinkRemoteClose(Event e)
onLinkRemoteClose
in interface CoreHandler
public void onLinkFlow(Event e)
onLinkFlow
in interface CoreHandler
public void onLinkFinal(Event e)
onLinkFinal
in interface CoreHandler
public void onDelivery(Event e)
onDelivery
in interface CoreHandler
public void onTransport(Event e)
onTransport
in interface CoreHandler
public void onTransportError(Event e)
onTransportError
in interface CoreHandler
public void onTransportHeadClosed(Event e)
onTransportHeadClosed
in interface CoreHandler
public void onTransportTailClosed(Event e)
onTransportTailClosed
in interface CoreHandler
public void onTransportClosed(Event e)
onTransportClosed
in interface CoreHandler
public void onReactorInit(Event e)
onReactorInit
in interface CoreHandler
public void onReactorQuiesced(Event e)
onReactorQuiesced
in interface CoreHandler
public void onReactorFinal(Event e)
onReactorFinal
in interface CoreHandler
public void onTimerTask(Event e)
onTimerTask
in interface CoreHandler
public void onSelectableInit(Event e)
onSelectableInit
in interface CoreHandler
public void onSelectableUpdated(Event e)
onSelectableUpdated
in interface CoreHandler
public void onSelectableReadable(Event e)
onSelectableReadable
in interface CoreHandler
public void onSelectableWritable(Event e)
onSelectableWritable
in interface CoreHandler
public void onSelectableExpired(Event e)
onSelectableExpired
in interface CoreHandler
public void onSelectableError(Event e)
onSelectableError
in interface CoreHandler
public void onSelectableFinal(Event e)
onSelectableFinal
in interface CoreHandler
public void onUnhandled(Event event)
onUnhandled
in interface Handler
public void handle(Event e)
Handler
Event.dispatch(Handler)
. The method must invoke a concrete onXxx
method for the given event, or invoke it's Handler.onUnhandled(Event)
method if the EventType
of the event is not recognized by the
handler.
Note: The handler is not supposed to invoke the
Handler.handle(Event)
method on it's Handler.children()
, that is the
responsibility of the Event.dispatch(Handler)
handle
in interface Handler
e
- The event to handleBaseHandler