Click or drag to resize
AtomicMonotonicTimestampGenerator Class
A timestamp generator that guarantees monotonically increasing timestamps among all client threads and logs warnings when timestamps drift in the future.
Inheritance Hierarchy
SystemObject
  CassandraAtomicMonotonicTimestampGenerator
    CassandraAtomicMonotonicWinApiTimestampGenerator

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.7.0
Syntax
C#
public class AtomicMonotonicTimestampGenerator : ITimestampGenerator

The AtomicMonotonicTimestampGenerator type exposes the following members.

Constructors
  NameDescription
Public methodAtomicMonotonicTimestampGenerator
Creates a new instance of AtomicMonotonicTimestampGenerator.
Top
Methods
  NameDescription
Public methodNext
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.

Top
Fields
  NameDescription
Public fieldStatic memberDefaultMinLogInterval
Default time separation between log events (expressed in milliseconds) in case of multiple log events.
Public fieldStatic memberDefaultWarningThreshold
Default warning threshold in milliseconds.
Top
See Also