DefaultUuidGenerator
@Deprecated public class ActiveMQUuidGenerator extends Object implements UuidGenerator
UuidGenerator
which is a fast implementation based on
how Apache ActiveMQ generates its UUID.
This implementation is not synchronized but it leverages API which may not be accessible
in the cloud (such as Google App Engine).
The JVM system property 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_HOSTNAME
Deprecated.
|
static String |
PROPERTY_IDGENERATOR_LOCALPORT
Deprecated.
|
static String |
PROPERTY_IDGENERATOR_PORT
Deprecated.
|
Constructor and Description |
---|
ActiveMQUuidGenerator()
Deprecated.
|
ActiveMQUuidGenerator(String prefix)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
generateSanitizedId()
Deprecated.
Generate a unique ID - that is friendly for a URL or file system
|
static String |
generateSanitizedId(String id)
Deprecated.
Ensures that the id is friendly for a URL or file system
|
String |
generateUuid()
Deprecated.
Generates a UUID string representation.
|
static String |
getHostName()
Deprecated.
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)
Deprecated.
|
public static final String PROPERTY_IDGENERATOR_HOSTNAME
public static final String PROPERTY_IDGENERATOR_LOCALPORT
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