public final class Timestamper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BIN_DIGITS
Value for left shifting System.currentTimeMillis, freeing some space for the counter
|
private static org.slf4j.Logger |
LOG |
private static java.util.concurrent.atomic.AtomicLong |
LOGGED |
private static int |
MAX_LOG |
static int |
ONE_MS
What is one milliseconds, based on "counter value reserved space", for this Timestamper
|
private static java.util.concurrent.atomic.AtomicLong |
VALUE |
Modifier | Constructor and Description |
---|---|
private |
Timestamper() |
Modifier and Type | Method and Description |
---|---|
private static void |
log(long base,
java.lang.String message,
java.lang.Object... params) |
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
private static final org.slf4j.Logger LOG
private static final int MAX_LOG
private static final java.util.concurrent.atomic.AtomicLong VALUE
private static final java.util.concurrent.atomic.AtomicLong LOGGED
public static long next()
BIN_DIGITS
private static void log(long base, java.lang.String message, java.lang.Object... params)