Package de.bmiag.tapir.execution.plan
Class IdGenerator
- java.lang.Object
-
- de.bmiag.tapir.execution.plan.IdGenerator
-
@Component("tapirIdGenerator") public class IdGenerator extends java.lang.Object
TheIdGenerator
is a thread-safe implementation which generates an unique ID during the build of the execution plan. It does so by relying onAtomicInteger
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description IdGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
generateId()
Returns an ID (starting with 1) which is unique in the execution plan
-