Class TimeOrderedFactory

    • Constructor Detail

      • TimeOrderedFactory

        public TimeOrderedFactory()
    • Method Detail

      • formatMostSignificantBits

        protected long formatMostSignificantBits​(long timestamp)
        Returns the most significant bits of the UUID.

        It implements the algorithm for generating UUIDv6.

        Overrides:
        formatMostSignificantBits in class AbstTimeBasedFactory
        Parameters:
        timestamp - the number of 100-nanoseconds since 1970-01-01 (Unix epoch)
        Returns:
        the MSB