Class IdGenerator


  • public class IdGenerator
    extends Object
    Generator for Globally unique Strings used to identify resources within a given Connection.
    • Constructor Detail

      • IdGenerator

        public IdGenerator​(String prefix)
        Construct an IdGenerator using the given prefix value as the initial prefix entry for all Ids generated (default is 'ID:').
        Parameters:
        prefix - The prefix value that is applied to all generated IDs.
      • IdGenerator

        public IdGenerator()
        Construct an IdGenerator using the default prefix value.
    • Method Detail

      • generateId

        public String generateId()
        Generate a unique id using the configured characteristics.
        Returns:
        a newly generated unique id value.