Class MonotonicUlidFactory


  • public final class MonotonicUlidFactory
    extends UlidFactory
    Factory that generates Monotonic ULIDs. The random component is reset to a new value every time the millisecond changes. If more than one ULID is generated within the same millisecond, the random component is incremented by one. The maximum ULIDs that can be generated per millisecond is 2^80.
    • Constructor Detail

      • MonotonicUlidFactory

        public MonotonicUlidFactory()
    • Method Detail

      • create

        public Ulid create​(long time)
        Returns a ULID.
        Specified by:
        create in class UlidFactory
        Parameters:
        time - a specific time
        Returns:
        a ULID