public class ServerSideTimestampGenerator extends Object implements TimestampGenerator
Long.MIN_VALUE
, in order to let Cassandra
assign server-side timestamps.Modifier and Type | Field and Description |
---|---|
static TimestampGenerator |
INSTANCE
The unique instance of this generator.
|
public static final TimestampGenerator INSTANCE
public long next()
TimestampGenerator
Implementors should enforce increasing monotonicity of timestamps, that is, a timestamp returned should always be strictly greater that any previously returned timestamp.
Implementors should strive to achieve microsecond precision in the best possible way, which is usually largely dependent on the underlying operating system's capabilities.
next
in interface TimestampGenerator
Long.MIN_VALUE
, it won't be
sent by the driver, letting Cassandra generate a server-side timestamp.Copyright © 2012–2023. All rights reserved.