public interface IInboundEventReceiver<T> extends ITenantLifecycleComponent
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayName()
Get name shown in user interfaces when referencing receiver.
|
IInboundEventSource<T> |
getEventSource()
Get the parent event source.
|
void |
onEventPayloadReceived(T payload,
java.util.Map<java.lang.String,java.lang.Object> metadata)
Called when an event payload is received.
|
void |
setEventSource(IInboundEventSource<T> source)
Set the parent event source that will process events.
|
getTenant, setTenant
canPause, findComponentsOfType, getComponentId, getComponentName, getComponentType, getCreatedDate, getLifecycleComponents, getLifecycleError, getLifecycleStatus, getLogger, initialize, initializeNestedComponent, lifecycleInitialize, lifecyclePause, lifecycleStart, lifecycleStop, lifecycleStop, logState, pause, start, startNestedComponent, stop, stop
java.lang.String getDisplayName()
void onEventPayloadReceived(T payload, java.util.Map<java.lang.String,java.lang.Object> metadata) throws EventDecodeException
payload
- metadata
- SiteWhereException
EventDecodeException
void setEventSource(IInboundEventSource<T> source)
source
- IInboundEventSource<T> getEventSource()