Package org.eclipse.hono.util
Interface TelemetryExecutionContext
-
- All Superinterfaces:
ExecutionContext
- All Known Implementing Classes:
MapBasedTelemetryExecutionContext
public interface TelemetryExecutionContext extends ExecutionContext
A container for information relevant for processing a message sent by a device which contains telemetry data or an event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Device
getAuthenticatedDevice()
Gets the verified identity of the device that the message has been received from which is processed in this context.QoS
getRequestedQos()
Gets the QoS level as set in the request by the device.default boolean
isDeviceAuthenticated()
Determines if the message that is processed in this context has been received from a device whose identity has been verified.-
Methods inherited from interface org.eclipse.hono.util.ExecutionContext
get, get, getTracingContext, put, setTracingContext
-
-
-
-
Method Detail
-
getAuthenticatedDevice
Device getAuthenticatedDevice()
Gets the verified identity of the device that the message has been received from which is processed in this context.- Returns:
- The device or
null
if the device has not been authenticated.
-
isDeviceAuthenticated
default boolean isDeviceAuthenticated()
Determines if the message that is processed in this context has been received from a device whose identity has been verified.- Returns:
true
if the device has been authenticated orfalse
otherwise.
-
getRequestedQos
QoS getRequestedQos()
Gets the QoS level as set in the request by the device.- Returns:
- The QoS level requested by the device.
-
-