Package com.db4o.foundation
Class TimeStampIdGenerator
- java.lang.Object
-
- com.db4o.foundation.TimeStampIdGenerator
-
public class TimeStampIdGenerator extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
BITS_RESERVED_FOR_COUNTER
static int
COUNTER_LIMIT
-
Constructor Summary
Constructors Constructor Description TimeStampIdGenerator()
TimeStampIdGenerator(long minimumNext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
generate()
static long
idToMilliseconds(long id)
long
last()
static long
millisecondsToId(long milliseconds)
protected long
now()
boolean
setMinimumNext(long newMinimum)
-
-
-
Field Detail
-
BITS_RESERVED_FOR_COUNTER
public static final int BITS_RESERVED_FOR_COUNTER
- See Also:
- Constant Field Values
-
COUNTER_LIMIT
public static final int COUNTER_LIMIT
- See Also:
- Constant Field Values
-
-