Package org.apache.qpid.proton.engine
Interface Event
- All Superinterfaces:
Extendable
Event
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncopy()
void
delegate()
dispatch the event to all children of the handler.void
getLink()
TheHandler
at the root of the handler tree.getTask()
getType()
A concrete event type of core events.void
redispatch
(EventType as_type, Handler handler) Synchronously redispatch the current event as a newEventType
on the provided handler and it's children.Methods inherited from interface org.apache.qpid.proton.engine.Extendable
attachments
-
Method Details
-
getEventType
EventType getEventType()- Returns:
- type of the event. The event type can be defined outside of the proton library.
-
getType
Event.Type getType()A concrete event type of core events.- Returns:
- type of the event for core events. For events generated by
extensions a
Event.Type.NON_CORE_EVENT
will be returned
-
getContext
Object getContext() -
getRootHandler
Handler getRootHandler()- Returns:
- The root handler
- See Also:
-
dispatch
- Throws:
HandlerException
-
redispatch
Synchronously redispatch the current event as a newEventType
on the provided handler and it's children.Note: the
redispatch()
will complete before children of the current handler have had the current event dispatched, seedelegate()
.- Parameters:
as_type
- Type of event to dispatchhandler
- The handler where to start the dispatch. UsegetRootHandler()
to redispatch the new event to all handlers in the tree.- Throws:
HandlerException
- A wrapper exception of any unhandled exception thrown byhandler
-
delegate
dispatch the event to all children of the handler. A handler can call this method explicitly to be able to do more processing after all child handlers have already processed the event. If handler does not invoke this method it is invoked implicitly bydispatch(Handler)
- Throws:
HandlerException
-
getConnection
Connection getConnection() -
getSession
Session getSession() -
getLink
Link getLink() -
getSender
Sender getSender() -
getReceiver
Receiver getReceiver() -
getDelivery
Delivery getDelivery() -
getTransport
Transport getTransport() -
getReactor
Reactor getReactor() -
getSelectable
Selectable getSelectable() -
getTask
Task getTask() -
copy
Event copy()
-