public class TimestampMillisProvider extends Object implements TimestampProvider
final TimestampProvider timestampProvider = new TimestampMillisProvider();
session.setTimestampProvider(timestampProvider);
Modifier and Type | Field and Description |
---|---|
static int |
TIMESTAMP_LENGTH |
Constructor and Description |
---|
TimestampMillisProvider() |
Modifier and Type | Method and Description |
---|---|
long |
getTimestamp()
Returns timestamp.
|
byte[] |
getTimestampBytes()
Returns timestamp.
|
public static final int TIMESTAMP_LENGTH
public byte[] getTimestampBytes()
TimestampProvider
Note: Timestamp should not contains space character.
getTimestampBytes
in interface TimestampProvider
public long getTimestamp()
TimestampProvider
getTimestamp
in interface TimestampProvider
Copyright © 2005–2024 Onix Solutions. All rights reserved.