Class PrefixCombFactory

  • All Implemented Interfaces:
    NoArgsFactory

    public final class PrefixCombFactory
    extends AbstCombFactory
    Concrete factory for creating Prefix COMB GUIDs.

    A Prefix COMB GUID is a UUID that combines a creation time with random bits.

    The creation millisecond is a 6 bytes PREFIX at the MOST significant bits.

    The created UUID is a UUIDv4 for compatibility with RFC-4122.

    See Also:
    The Cost of GUIDs as Primary Keys
    • Constructor Detail

      • PrefixCombFactory

        public PrefixCombFactory()
      • PrefixCombFactory

        public PrefixCombFactory​(Clock clock)
      • PrefixCombFactory

        public PrefixCombFactory​(Random random)
      • PrefixCombFactory

        public PrefixCombFactory​(Random random,
                                 Clock clock)
      • PrefixCombFactory

        public PrefixCombFactory​(LongSupplier randomFunction)
      • PrefixCombFactory

        public PrefixCombFactory​(IntFunction<byte[]> randomFunction)
      • PrefixCombFactory

        public PrefixCombFactory​(LongSupplier randomFunction,
                                 Clock clock)
      • PrefixCombFactory

        public PrefixCombFactory​(IntFunction<byte[]> randomFunction,
                                 Clock clock)