Brian O'Connor | 66630c8 | 2014-10-02 21:08:19 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.intent.impl; |
2 | |||||
3 | /** | ||||
4 | * An interface that gives unique ID spaces. | ||||
5 | */ | ||||
6 | public 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 | } |