Interface DeviceConnectionStatusProvider
-
- All Superinterfaces:
AutoCloseable
public interface DeviceConnectionStatusProvider extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDeviceLastConnectionTime(BigInteger datapathId, LocalDateTime time)
Update the last connection time of a device.LocalDateTime
getDeviceLastConnectionTime(BigInteger datapathId)
Get the last connection time of a device.void
init()
Initialize the DeviceConnectionStatusProvider.void
removeDeviceLastConnectionTime(BigInteger datapathId)
Clear the last connection time of a device.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
init
void init()
Initialize the DeviceConnectionStatusProvider.
-
getDeviceLastConnectionTime
LocalDateTime getDeviceLastConnectionTime(BigInteger datapathId)
Get the last connection time of a device.- Parameters:
datapathId
- datapathId of node
-
addDeviceLastConnectionTime
void addDeviceLastConnectionTime(BigInteger datapathId, LocalDateTime time)
Update the last connection time of a device.- Parameters:
datapathId
- datapathId of nodetime
- last connected time of datapathId
-
removeDeviceLastConnectionTime
void removeDeviceLastConnectionTime(BigInteger datapathId)
Clear the last connection time of a device.- Parameters:
datapathId
- datapathId of node
-
-