blob: 38ac5ed1b1100de60d84036d01ecf65c7ae7916c [file] [log] [blame]
package org.onosproject.core.impl;
import org.onosproject.core.IdBlock;
/**
* An interface that gives unique ID spaces.
*/
public interface IdBlockAllocator {
/**
* Allocates a unique Id Block.
*
* @return Id Block.
*/
IdBlock allocateUniqueIdBlock();
/**
* Allocates next unique id and retrieve a new range of ids if needed.
*
* @param range range to use for the identifier
* @return Id Block.
*/
IdBlock allocateUniqueIdBlock(long range);
}