Class IdGenerator


  • @Component("tapirIdGenerator")
    public class IdGenerator
    extends java.lang.Object
    The IdGenerator is a thread-safe implementation which generates an unique ID during the build of the execution plan. It does so by relying on AtomicInteger.
    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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdGenerator

        public IdGenerator()
    • Method Detail

      • generateId

        public int generateId()
        Returns an ID (starting with 1) which is unique in the execution plan
        Returns:
        a unique ID withing the execution plan
        Since:
        2.0.0