Package org.eclipse.hono.util
Class MapBasedTelemetryExecutionContext
- java.lang.Object
-
- org.eclipse.hono.util.MapBasedExecutionContext
-
- org.eclipse.hono.util.MapBasedTelemetryExecutionContext
-
- All Implemented Interfaces:
ExecutionContext
,TelemetryExecutionContext
public abstract class MapBasedTelemetryExecutionContext extends MapBasedExecutionContext implements TelemetryExecutionContext
An execution context that stores properties in aMap
.
-
-
Constructor Summary
Constructors Constructor Description MapBasedTelemetryExecutionContext(Device authenticatedDevice)
Creates a new context for a message received from a device.
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class org.eclipse.hono.util.MapBasedExecutionContext
get, get, getTracingContext, put, setTracingContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.hono.util.ExecutionContext
get, get, getTracingContext, put, setTracingContext
-
Methods inherited from interface org.eclipse.hono.util.TelemetryExecutionContext
getRequestedQos, isDeviceAuthenticated
-
-
-
-
Constructor Detail
-
MapBasedTelemetryExecutionContext
public MapBasedTelemetryExecutionContext(Device authenticatedDevice)
Creates a new context for a message received from a device.- Parameters:
authenticatedDevice
- The authenticated device that has uploaded the message ornull
if the device has not been authenticated.
-
-
Method Detail
-
getAuthenticatedDevice
public final Device getAuthenticatedDevice()
Gets the verified identity of the device that the message has been received from which is processed in this context.- Specified by:
getAuthenticatedDevice
in interfaceTelemetryExecutionContext
- Returns:
- The device or
null
if the device has not been authenticated.
-
-