public class ActiveMQUuidGenerator extends Object implements UuidGenerator
UuidGenerator
which is a fast implementation based on
how PROPERTY_IDGENERATOR_PORT
can be used to set a specific port
number to be used as part of the initialization process to generate unique UUID.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_IDGENERATOR_PORT |
Constructor and Description |
---|
ActiveMQUuidGenerator() |
ActiveMQUuidGenerator(String prefix) |
Modifier and Type | Method and Description |
---|---|
String |
generateSanitizedId()
Generate a unique ID - that is friendly for a URL or file system
|
static String |
generateSanitizedId(String id)
Ensures that the id is friendly for a URL or file system
|
String |
generateUuid()
Generates a UUID string representation.
|
static String |
getHostName()
As we have to find the hostname as a side-affect of generating a unique
stub, we allow it's easy retrieval here
|
static String |
sanitizeHostName(String hostName) |
public static final String PROPERTY_IDGENERATOR_PORT
public ActiveMQUuidGenerator(String prefix)
public ActiveMQUuidGenerator()
public static String getHostName()
public static String sanitizeHostName(String hostName)
public String generateUuid()
UuidGenerator
generateUuid
in interface UuidGenerator
public String generateSanitizedId()
public static String generateSanitizedId(String id)
id
- the unique idApache Camel