public final class Timestamper extends Object
Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
static long |
next()
Returns an increasing unique value based on the System.currentTimeMillis()
with some additional reserved space for a counter.
|
public static final int BIN_DIGITS
public static final int ONE_MS
public static long next()
BIN_DIGITS
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.