public interface TimestampGenerator extends AutoCloseable
These timestamps are used to order queries server-side, and resolve potential conflicts.
|Modifier and Type||Method and Description|
Returns the next timestamp, in microseconds.
The timestamps returned by this method should be monotonic; that is, successive invocations should return strictly increasing results. Note that this might not be possible using the clock alone, if it is not precise enough; alternative strategies might include incrementing the last returned value if the clock tick hasn't changed, and possibly drifting in the future. See the built-in driver implementations for more details.
Statement.NO_DEFAULT_TIMESTAMPto indicate that the driver should not send one with the query (and let Cassandra generate a server-side timestamp).
Copyright © 2017–2020. All rights reserved.