Class DeviceGroupRegistryImpl
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.registry.group.DeviceGroupRegistryImpl
-
- All Implemented Interfaces:
AutoCloseable
,CommonDeviceRegistry<GroupId>
,DeviceGroupRegistry
public class DeviceGroupRegistryImpl extends Object implements DeviceGroupRegistry
-
-
Constructor Summary
Constructors Constructor Description DeviceGroupRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
store
public void store(GroupId groupId)
Description copied from interface:CommonDeviceRegistry
Store KEY in device registry.- Specified by:
store
in interfaceCommonDeviceRegistry<GroupId>
- Parameters:
groupId
- device registry key
-
addMark
public void addMark(GroupId groupId)
Description copied from interface:CommonDeviceRegistry
Add mark for specified KEY.- Specified by:
addMark
in interfaceCommonDeviceRegistry<GroupId>
- Parameters:
groupId
- device registry key
-
processMarks
public void processMarks()
Description copied from interface:CommonDeviceRegistry
Process marked keys.- Specified by:
processMarks
in interfaceCommonDeviceRegistry<GroupId>
-
forEach
public void forEach(Consumer<GroupId> consumer)
Description copied from interface:CommonDeviceRegistry
Iterate over all keys in device registry.- Specified by:
forEach
in interfaceCommonDeviceRegistry<GroupId>
- Parameters:
consumer
- key consumer
-
size
public int size()
Description copied from interface:CommonDeviceRegistry
Get device registry size.- Specified by:
size
in interfaceCommonDeviceRegistry<GroupId>
- Returns:
- device registry size
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCommonDeviceRegistry<GroupId>
-
-