Class UuidFactory

java.lang.Object
io.fluxcapacitor.javaclient.common.UuidFactory
All Implemented Interfaces:
IdentityProvider

public class UuidFactory extends Object implements IdentityProvider
Default implementation of IdentityProvider that generates random UUIDs.

Optionally removes dashes from the UUID to produce a more compact identifier.

Example Output

  • 61f3c6d26c9c42d3b56b4c0a7e34c939 (if removeDashes = true)
  • 61f3c6d2-6c9c-42d3-b56b-4c0a7e34c939 (if removeDashes = false)
  • Constructor Details

    • UuidFactory

      public UuidFactory()
      Creates a UuidFactory that removes dashes (default behavior).
  • Method Details

    • nextFunctionalId

      public String nextFunctionalId()
      Returns a new UUID string, optionally stripped of dashes.
      Specified by:
      nextFunctionalId in interface IdentityProvider
      Returns:
      a unique identifier string