blob: 1adac025a265725937878bb3397e9c2afa2c68f3 [file] [log] [blame]
Brian O'Connor66630c82014-10-02 21:08:19 -07001package org.onlab.onos.net.intent.impl;
2
3/**
4 * An interface that gives unique ID spaces.
5 */
6public interface IdBlockAllocator {
7 /**
8 * Allocates a unique Id Block.
9 *
10 * @return Id Block.
11 */
12 IdBlock allocateUniqueIdBlock();
13
14 /**
15 * Allocates next unique id and retrieve a new range of ids if needed.
16 *
17 * @param range range to use for the identifier
18 * @return Id Block.
19 */
20 IdBlock allocateUniqueIdBlock(long range);
21}