public interface Event extends Extendable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Event.Type
Event types built into the library.
|
| Modifier and Type | Method and Description |
|---|---|
Event |
copy() |
void |
delegate()
dispatch the event to all children of the handler.
|
void |
dispatch(Handler handler) |
Connection |
getConnection() |
Object |
getContext() |
Delivery |
getDelivery() |
EventType |
getEventType() |
Link |
getLink() |
Reactor |
getReactor() |
Receiver |
getReceiver() |
Handler |
getRootHandler()
The
Handler at the root of the handler tree. |
Selectable |
getSelectable() |
Sender |
getSender() |
Session |
getSession() |
Task |
getTask() |
Transport |
getTransport() |
Event.Type |
getType()
A concrete event type of core events.
|
void |
redispatch(EventType as_type,
Handler handler)
Synchronously redispatch the current event as a new
EventType on the provided handler and it's children. |
attachmentsEventType getEventType()
Event.Type getType()
Event.Type.NON_CORE_EVENT will be returnedObject getContext()
Handler getRootHandler()
redispatch(EventType, Handler)void dispatch(Handler handler) throws HandlerException
HandlerExceptionvoid redispatch(EventType as_type, Handler handler) throws HandlerException
EventType 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, see delegate().
as_type - Type of event to dispatchhandler - The handler where to start the dispatch. Use getRootHandler() to redispatch the new event to all handlers in the tree.HandlerException - A wrapper exception of any unhandled exception thrown by handlervoid delegate()
throws HandlerException
dispatch(Handler)handler - HandlerExceptionConnection getConnection()
Session getSession()
Link getLink()
Sender getSender()
Receiver getReceiver()
Delivery getDelivery()
Transport getTransport()
Reactor getReactor()
Selectable getSelectable()
Task getTask()
Event copy()
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.