Class TimeOrderedUuidCreator

  • All Implemented Interfaces:
    NoArgumentsUuidCreator

    public 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()
      • TimeOrderedUuidCreator

        protected TimeOrderedUuidCreator​(UuidVersion version)
    • Method Detail

      • formatMostSignificantBits

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