Class IdGenerator
java.lang.Object
org.apache.qpid.protonj2.client.util.IdGenerator
Generator for Globally unique Strings used to identify resources within a given Connection.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe default Id prefix applied to all new Id values rendered from anIdGenerator.
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct an IdGenerator using the default prefix value.IdGenerator(String prefix) Construct an IdGenerator using the given prefix value as the initial prefix entry for all Ids generated (default is 'ID:').
- 
Method SummaryModifier and TypeMethodDescriptionGenerate a unique id using the configured characteristics.
- 
Field Details- 
DEFAULT_PREFIXThe default Id prefix applied to all new Id values rendered from anIdGenerator.- See Also:
 
 
- 
- 
Constructor Details- 
IdGeneratorConstruct 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.
 
- 
IdGeneratorpublic IdGenerator()Construct an IdGenerator using the default prefix value.
 
- 
- 
Method Details- 
generateIdGenerate a unique id using the configured characteristics.- Returns:
- a newly generated unique id value.
 
 
-