Interface RIdGeneratorAsync

    • Method Detail

      • tryInitAsync

        > tryInitAsync​(long value,
                                      long allocationSize)
        Initializes Id generator params.
        Parameters:
        value - - initial value
        allocationSize - - values range allocation size
        Returns:
        true if Id generator initialized false if Id generator already initialized
      • nextIdAsync

        > nextIdAsync()
        Returns next unique number but not monotonically increased
        Returns:
        number