Package org.apache.qpid.proton.engine
Interface Handler
-
- All Known Subinterfaces:
CoreHandler
- All Known Implementing Classes:
BaseHandler
,FlowController
,Handshaker
,IOHandler
public interface Handler
Handler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(Handler child)
java.util.Iterator<Handler>
children()
void
handle(Event e)
Handle the event in this instance.void
onUnhandled(Event e)
-
-
-
Method Detail
-
handle
void handle(Event e)
Handle the event in this instance. This is the second half ofEvent.dispatch(Handler)
. The method must invoke a concrete onXxx method for the given event, or invoke it'sonUnhandled(Event)
method if theEventType
of the event is not recognized by the handler.Note: The handler is not supposed to invoke the
handle(Event)
method on it'schildren()
, that is the responsibility of theEvent.dispatch(Handler)
- Parameters:
e
- The event to handle- See Also:
BaseHandler
-
onUnhandled
void onUnhandled(Event e)
-
add
void add(Handler child)
-
children
java.util.Iterator<Handler> children()
-
-