blob: fd9efdc70bba54f8288a6e2b3c891e546f0032b7 [file] [log] [blame]
Ray Milkey9ed4b962014-08-20 15:43:40 -07001package net.onrc.onos.core.matchaction;
2
Sho SHIMIZU7cd8a422014-08-27 16:05:21 -07003import net.onrc.onos.core.util.AbstractBlockAllocatorBasedIdGenerator;
Ray Milkey9ed4b962014-08-20 15:43:40 -07004import net.onrc.onos.core.util.IdBlockAllocator;
Ray Milkey9ed4b962014-08-20 15:43:40 -07005
Ray Milkey9ed4b962014-08-20 15:43:40 -07006
7/**
8 * Generates a global unique MatchActionIdId.
9 */
10public class MatchActionOperationsIdGeneratorWithIdBlockAllocator
Sho SHIMIZU7cd8a422014-08-27 16:05:21 -070011 extends AbstractBlockAllocatorBasedIdGenerator<MatchActionOperationsId> {
Ray Milkey9ed4b962014-08-20 15:43:40 -070012
Sho SHIMIZU7cd8a422014-08-27 16:05:21 -070013 /**
14 * Creates a FlowId generator instance using specified ID block allocator.
15 *
16 * @param allocator the ID block allocator to be used
17 */
18 public MatchActionOperationsIdGeneratorWithIdBlockAllocator(IdBlockAllocator allocator) {
19 super(allocator);
20 }
Ray Milkey9ed4b962014-08-20 15:43:40 -070021
Sho SHIMIZU7cd8a422014-08-27 16:05:21 -070022 @Override
23 protected MatchActionOperationsId convertFrom(long value) {
24 return new MatchActionOperationsId(value);
25 }
Ray Milkey9ed4b962014-08-20 15:43:40 -070026}