@ThreadSafe public class DeviceGroupRegistryImpl extends Object implements DeviceGroupRegistry
Constructor and Description |
---|
DeviceGroupRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addMark(GroupId groupId)
Add mark for specified KEY.
|
void |
close() |
void |
forEach(Consumer<GroupId> consumer)
Iterate over all keys in device registry.
|
void |
processMarks()
Process marked keys.
|
int |
size()
Get device registry size.
|
void |
store(GroupId groupId)
Store KEY in device registry.
|
public void store(GroupId groupId)
CommonDeviceRegistry
store
in interface CommonDeviceRegistry<GroupId>
groupId
- device registry keypublic void addMark(GroupId groupId)
CommonDeviceRegistry
addMark
in interface CommonDeviceRegistry<GroupId>
groupId
- device registry keypublic void processMarks()
CommonDeviceRegistry
processMarks
in interface CommonDeviceRegistry<GroupId>
public void forEach(Consumer<GroupId> consumer)
CommonDeviceRegistry
forEach
in interface CommonDeviceRegistry<GroupId>
consumer
- key consumerpublic int size()
CommonDeviceRegistry
size
in interface CommonDeviceRegistry<GroupId>
public void close()
close
in interface AutoCloseable
close
in interface CommonDeviceRegistry<GroupId>
Copyright © 2020 OpenDaylight. All rights reserved.