class EventImpl extends java.lang.Object implements Event
Event.Type| Modifier and Type | Field and Description |
|---|---|
(package private) RecordImpl |
attachments |
(package private) java.lang.Object |
context |
private Handler |
delegated |
(package private) EventImpl |
next |
(package private) EventType |
type |
| Constructor and Description |
|---|
EventImpl() |
| Modifier and Type | Method and Description |
|---|---|
Record |
attachments() |
(package private) void |
clear() |
Event |
copy() |
void |
delegate()
dispatch the event to all children of the handler.
|
void |
dispatch(Handler handler) |
Connection |
getConnection() |
java.lang.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.
|
(package private) void |
init(EventType type,
java.lang.Object context) |
void |
redispatch(EventType as_type,
Handler handler)
Synchronously redispatch the current event as a new
EventType on the provided handler and it's children. |
java.lang.String |
toString() |
EventType type
java.lang.Object context
EventImpl next
RecordImpl attachments
private Handler delegated
void init(EventType type, java.lang.Object context)
void clear()
public EventType getEventType()
getEventType in interface Eventpublic Event.Type getType()
EventgetType in interface EventEvent.Type.NON_CORE_EVENT will be returnedpublic java.lang.Object getContext()
getContext in interface Eventpublic Handler getRootHandler()
EventgetRootHandler in interface EventEvent.redispatch(EventType, Handler)public void dispatch(Handler handler) throws HandlerException
dispatch in interface EventHandlerExceptionpublic void delegate()
throws HandlerException
EventEvent.dispatch(Handler)delegate in interface EventHandlerExceptionpublic void redispatch(EventType as_type, Handler handler) throws HandlerException
EventEventType 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 Event.delegate().
redispatch in interface Eventas_type - Type of event to dispatchhandler - The handler where to start the dispatch. Use Event.getRootHandler() to redispatch the new event to all handlers in the tree.HandlerException - A wrapper exception of any unhandled exception thrown by handlerpublic Connection getConnection()
getConnection in interface Eventpublic Session getSession()
getSession in interface Eventpublic Receiver getReceiver()
getReceiver in interface Eventpublic Delivery getDelivery()
getDelivery in interface Eventpublic Transport getTransport()
getTransport in interface Eventpublic Selectable getSelectable()
getSelectable in interface Eventpublic Reactor getReactor()
getReactor in interface Eventpublic Record attachments()
attachments in interface Extendablepublic java.lang.String toString()
toString in class java.lang.Object