public interface IBlaubotBeaconStore
Modifier and Type | Method and Description |
---|---|
AbstractBlaubotDeviceDiscoveryEvent |
getLastDiscoveryEvent(java.lang.String uniqueDeviceID)
Get the last received discovery event for a given uniqueDeviceId
|
java.util.List<ConnectionMetaDataDTO> |
getLastKnownConnectionMetaData(java.lang.String uniqueDeviceId)
Get the last known connection meta data for a device
|
State |
getLastKnownState(java.lang.String uniqueDeviceId)
Retrieve the last known state for a device
|
void |
putConnectionMetaData(java.lang.String uniqueDeviceId,
java.util.List<ConnectionMetaDataDTO> connectionMetaDataList)
Puts connection meta data received from anywhere to the store (mostly used in acceptors and the
AdminMessageBeacon)
|
void |
putDiscoveryEvent(BeaconMessage theirBeaconMessage,
IBlaubotDevice remoteDevice)
Adds a discovery event by beacon message to the store.
|
java.util.List<ConnectionMetaDataDTO> getLastKnownConnectionMetaData(java.lang.String uniqueDeviceId)
uniqueDeviceId
- the unique device id of the device for which the connection meta data should be retrievedState getLastKnownState(java.lang.String uniqueDeviceId)
uniqueDeviceId
- the device's unique idAbstractBlaubotDeviceDiscoveryEvent getLastDiscoveryEvent(java.lang.String uniqueDeviceID)
uniqueDeviceID
- the device idvoid putDiscoveryEvent(BeaconMessage theirBeaconMessage, IBlaubotDevice remoteDevice)
theirBeaconMessage
- the discovery event to addremoteDevice
- the remote device from which the message was receivedvoid putConnectionMetaData(java.lang.String uniqueDeviceId, java.util.List<ConnectionMetaDataDTO> connectionMetaDataList)
uniqueDeviceId
- the unique device idconnectionMetaDataList
- the device's connection meta data