public class IdGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PREFIX |
static String |
PROPERTY_IDGENERATOR_HOST_PREFIX |
| Constructor and Description |
|---|
IdGenerator()
Construct 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:').
|
| Modifier and Type | Method and Description |
|---|---|
String |
generateId()
Generate a unique id using the configured characteristics.
|
protected static String |
sanitizeHostName(String hostName) |
public static final String DEFAULT_PREFIX
public static final String PROPERTY_IDGENERATOR_HOST_PREFIX
public IdGenerator(String prefix)
prefix - The prefix value that is applied to all generated IDs.public IdGenerator()
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.