Closed fabiolimace closed 3 years ago
Version 3.2.0 released.
Until version 3.1.3, DefaultTimestampStrategy used a counter to fill the lower bits of the timestamp. The counter was incremented by 1 when the method was invoked in the same millisecond. Now this work is done by an accumulator that is increased at each repetition with different values.
Whenever the method is invoked in the same millisecond, the elapsed ticks are added to the accumulator, that is, the 100-nsec interval count since the last call. The method's return is the current milliseconds plus the accumulator value.
TIMESTAMP = MILLISECONDS * 10000 + ACCUMULATOR;
Version 3.2.1 released.
Version 3.2.2 released.
Currently whenever a new time-based UUID is requested, the counter is incremented by one. After the change the counter will accumulate the elapsed time between calls.