public class GuidGenerator extends java.lang.Object implements IdGenerator
UUID.randomUUID()
.In the adapter configuration file this class is aliased as guid-generator which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
GuidGenerator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(java.lang.Object msg)
Create a unique id based on the object.
|
java.lang.String |
getUUID()
Get the next unique ID.
|
java.lang.String |
safeUUID()
Get a safe UUID
|
public java.lang.String getUUID()
public java.lang.String create(java.lang.Object msg)
IdGenerator
create
in interface IdGenerator
msg
- the object to create an id aroundIdGenerator.create(java.lang.Object)
public java.lang.String safeUUID()