Interface CommonDeviceRegistry<KEY>
-
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
DeviceFlowRegistry
,DeviceGroupRegistry
,DeviceMeterRegistry
- All Known Implementing Classes:
DeviceFlowRegistryImpl
,DeviceGroupRegistryImpl
,DeviceMeterRegistryImpl
public interface CommonDeviceRegistry<KEY> extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMark(KEY key)
Add mark for specified KEY.void
close()
void
forEach(Consumer<KEY> consumer)
Iterate over all keys in device registry.void
processMarks()
Process marked keys.int
size()
Get device registry size.void
store(KEY key)
Store KEY in device registry.
-
-
-
Method Detail
-
store
void store(KEY key)
Store KEY in device registry.- Parameters:
key
- device registry key
-
addMark
void addMark(KEY key)
Add mark for specified KEY.- Parameters:
key
- device registry key
-
processMarks
void processMarks()
Process marked keys.
-
forEach
void forEach(Consumer<KEY> consumer)
Iterate over all keys in device registry.- Parameters:
consumer
- key consumer
-
size
int size()
Get device registry size.- Returns:
- device registry size
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
-