public interface IDeviceEventDecoder<T> extends ITenantLifecycleComponent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
META_DEVICE
Metadata field used to pass device into nested decoders
|
static java.lang.String |
META_DEVICE_SPECIFICATION
Metadata field used to pass device into nested decoders
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IDecodedDeviceRequest<?>> |
decode(T payload,
java.util.Map<java.lang.String,java.lang.Object> metadata)
Decodes a payload into one or more
IDecodedDeviceRequest objects. |
getTenant, setTenantcanPause, findComponentsOfType, getComponentId, getComponentName, getComponentType, getCreatedDate, getLifecycleComponents, getLifecycleError, getLifecycleStatus, getLogger, initialize, initializeNestedComponent, lifecycleInitialize, lifecyclePause, lifecycleStart, lifecycleStop, lifecycleStop, logState, pause, start, startNestedComponent, stop, stopstatic final java.lang.String META_DEVICE
static final java.lang.String META_DEVICE_SPECIFICATION
java.util.List<IDecodedDeviceRequest<?>> decode(T payload, java.util.Map<java.lang.String,java.lang.Object> metadata) throws EventDecodeException
IDecodedDeviceRequest objects.payload - the payload that will be decodedmetadata - extra information associated with the payloadEventDecodeException - if the payload can not be decoded