|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.utils.SIDGenerator
public final class SIDGenerator
Generate session IDs.
Session IDs are long values that must be unique on the same JVM.
Each call of the next()
method returns an
unique ID (unique relative to the current running JVM).
Method Summary | |
---|---|
static long |
next()
The long unique id is generated as follow: |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static long next()
On the first 32 bits we put an integer value incremented at each call and that is reset to 0 when the it reaches the max integer range.
On the last 32 bits the most significant part of the current timestamp in milliseconds.
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |