public class TimestampPicosProvider extends Object implements TimestampProvider
Note: Nanosecond precision is achieved using combination of the System.currentTimeMillis()
and
System.nanoTime()
methods, with synchronization against System.currentTimeMillis()
only at the beginning.
Please note that it may have some precision loss.
final TimestampProvider timestampProvider = new TimestampPicosProvider();
session.setTimestampProvider(timestampProvider);
Modifier and Type | Field and Description |
---|---|
static int |
TIMESTAMP_LENGTH |
Constructor and Description |
---|
TimestampPicosProvider() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getTimestamp()
Returns timestamp.
|
public static final int TIMESTAMP_LENGTH
public byte[] getTimestamp()
TimestampProvider
Note: Timestamp should not contains space character.
getTimestamp
in interface TimestampProvider
Copyright © 2005–2024 Onix Solutions. All rights reserved.