Interface DeviceConnectionStatusProvider
-
- All Superinterfaces:
AutoCloseable
public interface DeviceConnectionStatusProvider extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDeviceLastConnectionTime(BigInteger datapathId, LocalDateTime time)Update the last connection time of a device.LocalDateTimegetDeviceLastConnectionTime(BigInteger datapathId)Get the last connection time of a device.voidinit()Initialize the DeviceConnectionStatusProvider.voidremoveDeviceLastConnectionTime(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
-
-