|
|
|
@ -129,10 +129,10 @@ public class DefaultDeviceStateService implements DeviceStateService { |
|
|
|
private volatile boolean clusterUpdatePending = false; |
|
|
|
|
|
|
|
private ListeningScheduledExecutorService queueExecutor; |
|
|
|
private ConcurrentMap<TopicPartitionInfo, Set<DeviceId>> partitionedDevices = new ConcurrentHashMap<>(); |
|
|
|
private ConcurrentMap<DeviceId, DeviceStateData> deviceStates = new ConcurrentHashMap<>(); |
|
|
|
private ConcurrentMap<DeviceId, Long> deviceLastReportedActivity = new ConcurrentHashMap<>(); |
|
|
|
private ConcurrentMap<DeviceId, Long> deviceLastSavedActivity = new ConcurrentHashMap<>(); |
|
|
|
private final ConcurrentMap<TopicPartitionInfo, Set<DeviceId>> partitionedDevices = new ConcurrentHashMap<>(); |
|
|
|
private final ConcurrentMap<DeviceId, DeviceStateData> deviceStates = new ConcurrentHashMap<>(); |
|
|
|
private final ConcurrentMap<DeviceId, Long> deviceLastReportedActivity = new ConcurrentHashMap<>(); |
|
|
|
private final ConcurrentMap<DeviceId, Long> deviceLastSavedActivity = new ConcurrentHashMap<>(); |
|
|
|
|
|
|
|
public DefaultDeviceStateService(TenantService tenantService, DeviceService deviceService, |
|
|
|
AttributesService attributesService, TimeseriesService tsService, |
|
|
|
|