org.jwarp.util
Class IDGenerator

java.lang.Object
  |
  +--org.jwarp.util.IDGenerator

public class IDGenerator
extends java.lang.Object

This is an implementation of UniqueIdService.

Author:
Anatole Tresch

Field Summary
protected  long counter
           
protected  int step
           
 
Constructor Summary
IDGenerator()
           
 
Method Summary
 java.lang.String getUniqueId()
           Returns an identifier that is unique within this turbine instance, but does not have random-like apearance.
 void setStart(long value)
           
 void setStepSize(int size)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counter

protected long counter

step

protected int step
Constructor Detail

IDGenerator

public IDGenerator()
Method Detail

getUniqueId

public java.lang.String getUniqueId()

Returns an identifier that is unique within this turbine instance, but does not have random-like apearance.

Returns:
A String with the non-random looking instance identifier.

setStart

public void setStart(long value)

setStepSize

public void setStepSize(int size)

©   O R C A   S y s t e m s