Package org.apache.qpid.proton.engine
Interface Handler
-
- All Known Subinterfaces:
CoreHandler
- All Known Implementing Classes:
BaseHandler,FlowController,Handshaker,IOHandler
public interface HandlerHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(Handler child)java.util.Iterator<Handler>children()voidhandle(Event e)Handle the event in this instance.voidonUnhandled(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 theEventTypeof 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()
-
-