### UUIDv7Factory Constructors Source: https://javadoc.io/doc/org.jobrunr/jobrunr/8.1.0/org/jobrunr/utils/uuid/UUIDv7Factory.html Details the available constructors for the UUIDv7Factory class. ```APIDOC ## Constructors ### UUIDv7Factory() Creates a new UUIDv7Factory with default settings. ### UUIDv7Factory(Clock clock) Creates a new UUIDv7Factory with a specific Clock. * **clock** (Clock) - The clock to use for time-related operations. ### UUIDv7Factory(UUIDv7Factory.Builder builder) Creates a new UUIDv7Factory using a builder. * **builder** (UUIDv7Factory.Builder) - The builder to configure the factory. ``` -------------------------------- ### UUIDv7Factory Methods Source: https://javadoc.io/doc/org.jobrunr/jobrunr/8.1.0/org/jobrunr/utils/uuid/UUIDv7Factory.html Details the methods available in the UUIDv7Factory class. ```APIDOC ## Methods ### static UUIDv7Factory.Builder builder() Returns a builder of Unix epoch time-ordered factory. Returns: a builder ### UUID create() Returns a time-ordered unique identifier (UUIDv7). Returns: a UUIDv7 ``` -------------------------------- ### UUIDv7Factory Class Overview Source: https://javadoc.io/doc/org.jobrunr/jobrunr/8.1.0/org/jobrunr/utils/uuid/UUIDv7Factory.html Provides information about the UUIDv7Factory class and its purpose. ```APIDOC ## Class: UUIDv7Factory ### Description Concrete factory for creating Unix epoch time-ordered unique identifiers (UUIDv7). UUIDv7 is a new UUID version proposed by Peabody and Davis. It is similar to Prefix COMB GUID and ULID. This factory creates 3 types: * **Type 1 (default)** : this type is divided in 3 components, namely time, counter and random. The counter component is incremented by 1 when the time repeats. The random component is always randomized. * **Type 2 (plus 1)** : this type is divided in 2 components, namely time and monotonic random. The monotonic random component is incremented by 1 when the time repeats. This type of UUID is like a Monotonic ULID. It can be much faster than the other types. * **Type 3 (plus n)** : this type is also divided in 2 components, namely time and monotonic random. The monotonic random component is incremented by a random positive integer between 1 and MAX when the time repeats. If the value of MAX is not specified, MAX is 2^32. This type of UUID is also like a Monotonic ULID. **Warning:** this can change in the future. See Also: * UUID Creator * ULID Specification * New UUID formats * Revise Universally Unique Identifier Definitions (uuidrev) ``` -------------------------------- ### UUIDv7Factory.Builder Class Source: https://javadoc.io/doc/org.jobrunr/jobrunr/8.1.0/org/jobrunr/utils/uuid/UUIDv7Factory.Builder.html Details on the builder class for creating UUIDv7Factory instances. ```APIDOC ## Class UUIDv7Factory.Builder ### Description Concrete builder for creating a Unix epoch time-ordered factory. ### Fields #### Field Summary - **clock** (Clock) - `protected Clock` - The clock instance to use. - **DEFAULT_CLOCK** (Clock) - `protected static final Clock` - The default clock instance. - **random** (Random) - `protected Random` - The random number generator. ### Constructors #### Constructor Summary - **Builder()** - Creates a new instance of the Builder. ### Methods #### Method Summary - **build()** (UUIDv7Factory) - Builds the UUIDv7Factory instance. - **getClock()** (Clock) - `protected` - Returns the current clock instance. - **getIncrementSupplier()** (LongSupplier) - `protected` - Returns the increment supplier. - **getIncrementType()** (int) - `protected` - Returns the increment type. - **withClock(Clock clock)** (UUIDv7Factory.Builder) - Sets the clock instance to use. - **withIncrementPlus1()** (UUIDv7Factory.Builder) - Configures the builder to use an increment of +1. - **withIncrementPlusN()** (UUIDv7Factory.Builder) - Configures the builder for a general increment. - **withIncrementPlusN(long incrementMax)** (UUIDv7Factory.Builder) - Configures the builder for a general increment up to a maximum value. ### Methods inherited from class java.lang.Object `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait` ### Field Details #### DEFAULT_CLOCK `protected static final Clock DEFAULT_CLOCK` #### clock `protected Clock clock` #### random `protected Random random` ### Constructor Details #### Builder `public Builder()` ### Method Details #### getClock `protected Clock getClock()` #### withClock `public UUIDv7Factory.Builder withClock(Clock clock)` #### withIncrementPlus1 `public UUIDv7Factory.Builder withIncrementPlus1()` #### withIncrementPlusN `public UUIDv7Factory.Builder withIncrementPlusN()` #### withIncrementPlusN `public UUIDv7Factory.Builder withIncrementPlusN(long incrementMax)` #### getIncrementType `protected int getIncrementType()` #### getIncrementSupplier `protected LongSupplier getIncrementSupplier()` #### build `public UUIDv7Factory build()` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.