com.webhydra.slug.process
Class PidGenerator

java.lang.Object
  extended by com.webhydra.slug.process.PidGenerator

public class PidGenerator
extends java.lang.Object

Unique PID generator.

Author:
rossen

Field Summary
protected static long nexPidSeq
          Holds next PID sequence extension value.
static char SEPARATOR
          Paer separatirs in the generated PIDs.
 
Constructor Summary
PidGenerator()
           
 
Method Summary
static java.lang.String newPid()
          Generate new unique PID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nexPidSeq

protected static long nexPidSeq
Holds next PID sequence extension value.


SEPARATOR

public static final char SEPARATOR
Paer separatirs in the generated PIDs.

See Also:
Constant Field Values
Constructor Detail

PidGenerator

public PidGenerator()
Method Detail

newPid

public static java.lang.String newPid()
Generate new unique PID

Returns:
new unique PID.