public class StoreBasedIdBlockAllocator extends Object implements IdBlockAllocator
| Constructor and Description |
|---|
StoreBasedIdBlockAllocator(String topic,
org.onosproject.core.IdBlockStore store) |
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.core.IdBlock |
allocateUniqueIdBlock()
Returns a block of IDs which are unique and unused.
|
org.onosproject.core.IdBlock |
allocateUniqueIdBlock(long range)
Allocates next unique id and retrieve a new range of ids if needed.
|
public StoreBasedIdBlockAllocator(String topic, org.onosproject.core.IdBlockStore store)
public org.onosproject.core.IdBlock allocateUniqueIdBlock()
allocateUniqueIdBlock in interface IdBlockAllocatorpublic org.onosproject.core.IdBlock allocateUniqueIdBlock(long range)
IdBlockAllocatorallocateUniqueIdBlock in interface IdBlockAllocatorrange - range to use for the identifier