|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.util.Timestamper
public final class Timestamper
Generates increasing identifiers (in a single VM only). Not valid across multiple VMs. Yet, the identifier is based on time, so that the drifting across a cluster should not ever be large...
Field Summary | |
---|---|
static int |
BIN_DIGITS
Value for left shifting System.currentTimeMillis, freeing some space for the counter |
static int |
ONE_MS
What is one milliseconds, based on "counter value reserved space", for this Timestamper |
Method Summary | |
---|---|
static long |
next()
Returns an increasing unique value based on the System.currentTimeMillis() with some additional reserved space for a counter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BIN_DIGITS
public static final int ONE_MS
Method Detail |
---|
public static long next()
BIN_DIGITS
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |