public class DefaultUuidGenerator extends Object implements org.apache.camel.spi.UuidGenerator
UuidGenerator
optimized for Camel usage.Constructor and Description |
---|
DefaultUuidGenerator() |
DefaultUuidGenerator(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() |
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 DefaultUuidGenerator(String prefix)
public DefaultUuidGenerator()
public static String getHostName()
public String generateUuid()
generateUuid
in interface org.apache.camel.spi.UuidGenerator
public String generateSanitizedId()
Apache Camel