Module me.ahoo.cosid.core
Package me.ahoo.cosid.time
package me.ahoo.cosid.time
Time-based generators (03-core-model.md): layouts, the time source, the clock regression policy,
TimeBasedGenerator, and UuidV7Generator (D46), whose ids carry
a timestamp but need no slot.-
ClassDescriptionWhat a time-based generator does when the clock goes back (03-core-model.md §4): up to
borrowUpToit keeps issuing in the last time unit (borrowing from the future), up towaitUpToit waits, beyond that it throwsClockBackwardsException.The parts of a time-based id (03-core-model.md §2).The bit layout of time-based ids,time | node | seqfrom the high bits down: the one place of the bit arithmetic (03-core-model.md §2).The time-based generator: Snowflake layouts and the 80-bit CosId alike (03-core-model.md §4).The time every generator reads (03-core-model.md §3); tests inject a controllable one.UUIDv7 ids (D46, RFC 9562 §5.7): a 48-bit Unix millisecond timestamp, version 7, a 16-bit counter (the 12 bits ofrand_aand the top 4 bits ofrand_b), variant0b10and 58 random bits.