You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Obtains an instance of SequencePatternConverter.
42
+
* Creates an instance of {@link UuidPatternConverter}.
43
+
* <p>
44
+
* The {@code RANDOM} option generates a Type 4 (pseudo-randomly generated) UUID.
45
+
* The UUID is generated using a cryptographically strong pseudo-random number generator.
46
+
* <p>
47
+
* The {@code TIME} option generates a Type 1 (date and time based) UUID using the local network interface's MAC address.
48
+
* To ensure uniqueness across multiple JVMs and/or class loaders on the same host, a random number between 0 and 16384 will be associated with each instance of the UUID generator class, and included in each time-based UUID generated.
49
+
* See {@link UuidUtil#UUID_SEQUENCE} how to seed the UUID generation with an integer value.
50
+
* Because time-based UUIDs contain the MAC address and timestamp, they should be used with care.
43
51
*
44
-
* @param options options, currently ignored, may be null.
45
-
* @return instance of SequencePatternConverter.
52
+
* @param options An array containing either {@code RANDOM} or {@code TIME}.
53
+
* If empty, {@code TIME} will be used.
54
+
* @return a new {@link UuidPatternConverter} instance
The time-based UUID is a Type 1 UUID generated using the MAC address of each host
1346
+
The random UUID is a type 4 UUID. The UUID is generated using a cryptographically strong pseudo-random number generator.
1347
+
1348
+
The time-based UUID is a Type 1 (date and time based) UUID generated using the MAC address of each host.
1347
1349
To ensure uniqueness across multiple JVMs and/or class loaders on the same host, a random number between 0 and 16,384 will be associated with each instance of the UUID generator class, and included in each time-based UUID generated.
1348
1350
See also xref:manual/systemproperties.adoc#log4j2.uuidSequence[`log4j2.uuidSequence`].
1349
1351
Because time-based UUIDs contain the MAC address and timestamp, they should be used with care.
0 commit comments