Package org.apache.qpid.jms.util
Class IdGenerator
java.lang.Object
org.apache.qpid.jms.util.IdGenerator
Generator for Globally unique Strings used to identify resources within a given Connection.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct 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 Summary
Modifier and TypeMethodDescriptionGenerate a unique id using the configured characteristics.protected static StringsanitizeHostName(String hostName)
-
Field Details
-
DEFAULT_PREFIX
- See Also:
-
PROPERTY_IDGENERATOR_HOST_PREFIX
- See Also:
-
-
Constructor Details
-
IdGenerator
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 Details
-
generateId
Generate a unique id using the configured characteristics.- Returns:
- a newly generated unique id value.
-
sanitizeHostName
-