Class BlockingIdentifierGenerator

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletionStage<java.lang.Long> generate​(ReactiveConnectionSupplier connectionSupplier, java.lang.Object ignored)
      Returns a generated identifier, via a CompletionStage.
      protected abstract int getBlockSize()
      The block size (the number of "lo" values for each "hi" value)
      protected abstract java.util.concurrent.CompletionStage<java.lang.Long> nextHiValue​(ReactiveConnectionSupplier session)
      Allocate a new block, by obtaining the next "hi" value from the database
      • Methods inherited from class java.lang.Object

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

      • BlockingIdentifierGenerator

        public BlockingIdentifierGenerator()
    • Method Detail

      • getBlockSize

        protected abstract int getBlockSize()
        The block size (the number of "lo" values for each "hi" value)
      • nextHiValue

        protected abstract java.util.concurrent.CompletionStage<java.lang.Long> nextHiValue​(ReactiveConnectionSupplier session)
        Allocate a new block, by obtaining the next "hi" value from the database