Class TimeBasedUUIDGenerator

java.lang.Object
icu.congee.id.generator.elasticflake.TimeBasedUUIDGenerator

public class TimeBasedUUIDGenerator extends Object
These are essentially flake ids (http://boundary.com/blog/2012/01/12/flake-a-decentralized-k-ordered-unique-id-generator-in-erlang) but we use 6 (not 8) bytes for timestamp, and use 3 (not 2) bytes for sequence number.
  • Constructor Details

    • TimeBasedUUIDGenerator

      public TimeBasedUUIDGenerator()
  • Method Details

    • getBase64UUID

      public String getBase64UUID()