Class TimeOrderedFactory

  • All Implemented Interfaces:
    NoArgsFactory

    public final class TimeOrderedFactory
    extends AbstTimeBasedFactory
    Factory that creates ordered gregorian time-based UUIDs. RFC-4122 version: 6. IETF Draft: https://tools.ietf.org/html/draft-peabody-dispatch-new-uuid-format
    • Constructor Detail

      • TimeOrderedFactory

        public TimeOrderedFactory()
    • 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 AbstTimeBasedFactory
        Parameters:
        timestamp - a timestamp
        Returns:
        the MSB