public interface EventHandler extends AdaptrisComponent, StateManagedComponent, ComponentLifecycleExtension
Defines behaviour related to sending and receiving Event
s using
other standard framework components.
Modifier and Type | Method and Description |
---|---|
void |
registerSourceId(java.lang.String sourceId)
Sets the source id for this EventHandler.
|
java.lang.String |
retrieveSourceId()
Retrieve the source id for this EventHandler.
|
void |
send(Event evt)
Send an
Event to the configured default destination. |
void |
send(Event evt,
java.util.Map<java.lang.String,java.lang.String> properties)
Send an
Event to the configured default destination. |
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
getUniqueId
close, init, start, stop
prepare
void send(Event evt) throws CoreException
Send an Event
to the configured default destination.
evt
- the Event
to sendCoreException
- wrapping any underlying Exceptionsvoid send(Event evt, java.util.Map<java.lang.String,java.lang.String> properties) throws CoreException
Send an Event
to the configured default destination.
evt
- the Event
to sendproperties
- any additional properties that should be sent if possible.CoreException
- wrapping any underlying Exceptionsvoid registerSourceId(java.lang.String sourceId)
Sets the source id for this EventHandler. The source id may be used for routing or replying to events and is generally the
unique id of the Adapter
.
sourceId
- the source id to be sent as part of the Event
java.lang.String retrieveSourceId()
Retrieve the source id for this EventHandler. The source id may be used for routing or replying to events and is generally the
unique id of the Adapter
.