Class UuidFactory
java.lang.Object
io.fluxcapacitor.javaclient.common.UuidFactory
- All Implemented Interfaces:
IdentityProvider
Default implementation of
IdentityProvider
that generates random UUIDs.
Optionally removes dashes from the UUID to produce a more compact identifier.
Example Output
61f3c6d26c9c42d3b56b4c0a7e34c939
(ifremoveDashes = true
)61f3c6d2-6c9c-42d3-b56b-4c0a7e34c939
(ifremoveDashes = false
)
-
Field Summary
Fields inherited from interface io.fluxcapacitor.javaclient.common.IdentityProvider
defaultIdentityProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a new UUID string, optionally stripped of dashes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluxcapacitor.javaclient.common.IdentityProvider
nextTechnicalId
-
Constructor Details
-
UuidFactory
public UuidFactory()Creates aUuidFactory
that removes dashes (default behavior).
-
-
Method Details
-
nextFunctionalId
Returns a new UUID string, optionally stripped of dashes.- Specified by:
nextFunctionalId
in interfaceIdentityProvider
- Returns:
- a unique identifier string
-