public interface IInboundEventSource<T> extends ITenantLifecycleComponent
IInboundEventReceiver
,
decodes them, and forwards them for processing.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSourceId()
Get unique id for event source.
|
void |
onEncodedEventReceived(IInboundEventReceiver<T> receiver,
T encodedEvent,
java.util.Map<java.lang.String,java.lang.Object> metadata)
Called by
IInboundEventReceiver when an encoded event is
received. |
void |
setDeviceEventDecoder(IDeviceEventDecoder<T> decoder)
Set the device event decoder.
|
void |
setInboundEventReceivers(java.util.List<IInboundEventReceiver<T>> receivers)
Set the list of
IInboundEventReceiver that feed this processor. |
void |
setInboundProcessingStrategy(IInboundProcessingStrategy strategy)
Set the strategy for submitting inbound events into the bus.
|
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 getSourceId()
void setDeviceEventDecoder(IDeviceEventDecoder<T> decoder)
decoder
- void setInboundProcessingStrategy(IInboundProcessingStrategy strategy)
strategy
- void setInboundEventReceivers(java.util.List<IInboundEventReceiver<T>> receivers)
IInboundEventReceiver
that feed this processor.receivers
- void onEncodedEventReceived(IInboundEventReceiver<T> receiver, T encodedEvent, java.util.Map<java.lang.String,java.lang.Object> metadata) throws EventDecodeException
IInboundEventReceiver
when an encoded event is
received.receiver
- encodedEvent
- metadata
- EventDecodeException