Class TimeOrderedUuidCreator

  • All Implemented Interfaces:
    NoArgumentsUuidCreator

    public final class TimeOrderedUuidCreator
    extends AbstractTimeBasedUuidCreator
    Factory that creates time-ordered UUIDs. RFC-4122 version: 6. Proposal: http://gh.peabody.io/uuidv6/ IETF Draft: https://tools.ietf.org/html/draft-peabody-dispatch-new-uuid-format
    • Constructor Detail

      • TimeOrderedUuidCreator

        public TimeOrderedUuidCreator()
    • Method Detail

      • formatMostSignificantBits

        protected long formatMostSignificantBits​(long timestamp)
        Returns the timestamp bits of the UUID version 6, keeping its byte order unchanged.
        Overrides:
        formatMostSignificantBits in class AbstractTimeBasedUuidCreator
        Parameters:
        timestamp - a timestamp
        Returns:
        the MSB