org.apache.camel.impl
Class JavaUuidGenerator

java.lang.Object
  extended by org.apache.camel.impl.JavaUuidGenerator
All Implemented Interfaces:
UuidGenerator

public class JavaUuidGenerator
extends Object
implements UuidGenerator

This implementation uses the UUID from Java.

The implementation of UUID is synchronized and therefore other UuidGenerator may be faster in high concurrent systems.


Constructor Summary
JavaUuidGenerator()
           
 
Method Summary
 String generateUuid()
          Generates a UUID string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaUuidGenerator

public JavaUuidGenerator()
Method Detail

generateUuid

public String generateUuid()
Description copied from interface: UuidGenerator
Generates a UUID string representation.

Specified by:
generateUuid in interface UuidGenerator
Returns:
the unique id.


Apache CAMEL