| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ws4d.java.util.IDGenerator
public final class IDGenerator
This class can be used to create RFC-4122 time based Universally Unique Identifiers with random host node part. Portions adopted from the JUG UUID generator. Also offers methods for generating random numbers.
| Field Summary | |
|---|---|
static java.lang.String | 
URI_UUID_PREFIX
the prefix to be used for DPWS.  | 
static java.lang.String | 
UUID_PREFIX
 | 
| Method Summary | |
|---|---|
static long | 
getSequenceNumber()
Returns a sequence number that is unique within a single VM until this VM is restarted.  | 
static int | 
getStaticMsgId()
Increment static message id.  | 
static java.lang.String | 
getUUID()
Returns a RFC-4122 conformant UUID, normal form.  | 
static URI | 
getUUIDasURI()
Returns the UUID as URI. e.g.  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String UUID_PREFIX
public static final java.lang.String URI_UUID_PREFIX
| Method Detail | 
|---|
public static java.lang.String getUUID()
public static URI getUUIDasURI()
public static long getSequenceNumber()
public static int getStaticMsgId()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||