Package org.apache.qpid.proton.engine
Interface Event
-
- All Superinterfaces:
Extendable
public interface Event extends Extendable
Event
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEvent.TypeEvent types built into the library.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Eventcopy()voiddelegate()dispatch the event to all children of the handler.voiddispatch(Handler handler)ConnectiongetConnection()java.lang.ObjectgetContext()DeliverygetDelivery()EventTypegetEventType()LinkgetLink()ReactorgetReactor()ReceivergetReceiver()HandlergetRootHandler()TheHandlerat the root of the handler tree.SelectablegetSelectable()SendergetSender()SessiongetSession()TaskgetTask()TransportgetTransport()Event.TypegetType()A concrete event type of core events.voidredispatch(EventType as_type, Handler handler)Synchronously redispatch the current event as a newEventTypeon the provided handler and it's children.-
Methods inherited from interface org.apache.qpid.proton.engine.Extendable
attachments
-
-
-
-
Method Detail
-
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_EVENTwill be returned
-
getContext
java.lang.Object getContext()
-
getRootHandler
Handler getRootHandler()
- Returns:
- The root handler
- See Also:
redispatch(EventType, Handler)
-
dispatch
void dispatch(Handler handler) throws HandlerException
- Throws:
HandlerException
-
redispatch
void redispatch(EventType as_type, Handler handler) throws HandlerException
Synchronously redispatch the current event as a newEventTypeon 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
void delegate() throws HandlerExceptiondispatch 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()
-
-