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