public class HybridTimestampFactory extends Object
System.currentTimeMillis()
and an internal
counter to provide unique timestamps with greater than millisecond
resolution.Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Deprecated.
Logger.
|
Modifier | Constructor and Description |
---|---|
protected |
HybridTimestampFactory()
Deprecated.
Allows up to 1024 distinct timestamps per millisecond.
|
|
HybridTimestampFactory(int counterBits)
Deprecated.
Allows up to
2^counterBits distinct timestamps per
millisecond. |
Modifier and Type | Method and Description |
---|---|
long |
getSleepCounter()
Deprecated.
The #of times the factory needed to sleep the current thread in order to
generate a distinct timestamp.
|
long |
nextTimestamp()
Deprecated.
|
protected HybridTimestampFactory()
public HybridTimestampFactory(int counterBits)
2^counterBits
distinct timestamps per
millisecond.counterBits
- The #of bits in the long timestamp that are used to represent
a counter.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.