Interface ITimestampGenerator
Represents client-side, microsecond-precision query timestamps.
Given that Apache Cassandra uses those timestamps to resolve conflicts, implementations should generate monotonically increasing timestamps for successive invocations of Next().
Namespace: Dse
Assembly: Dse.dll
Syntax
public interface ITimestampGenerator
Methods
Next()
Returns the next timestamp in microseconds since UNIX epoch.
Implementers should enforce increasing monotonic timestamps, that is, a timestamp returned should always be strictly greater that any previously returned timestamp.
Implementers should strive to achieve microsecond precision in the best possible way, which is usually largely dependent on the underlying operating system's capabilities.
Declaration
long Next()
Returns
Type | Description |
---|---|
System.Int64 | The next timestamp (in microseconds). When returning System.Int64.MinValue, the driver will not set the timestamp, letting Apache Cassandra generate a server-side timestamp. |