Class IdGenerator
- java.lang.Object
-
- org.apache.qpid.protonj2.client.util.IdGenerator
-
public class IdGenerator extends java.lang.Object
Generator for Globally unique Strings used to identify resources within a given Connection.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_PREFIX
The default Id prefix applied to all new Id values rendered from anIdGenerator
.
-
Constructor Summary
Constructors Constructor Description IdGenerator()
Construct an IdGenerator using the default prefix value.IdGenerator(java.lang.String prefix)
Construct an IdGenerator using the given prefix value as the initial prefix entry for all Ids generated (default is 'ID:').
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
generateId()
Generate a unique id using the configured characteristics.
-
-
-
Field Detail
-
DEFAULT_PREFIX
public static final java.lang.String DEFAULT_PREFIX
The default Id prefix applied to all new Id values rendered from anIdGenerator
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IdGenerator
public IdGenerator(java.lang.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.
-
-