Was this page helpful?
ScyllaDB Python Driver is available under the Apache v2 License. ScyllaDB Python Driver is a fork of DataStax Python Driver. See Copyright here.
cassandra.timestamps
- Timestamp Generation¶An object that, when called, returns int(time.time() * 1e6)
when
possible, but, if the value returned by time.time
doesn’t increase,
drifts into the future and logs warnings.
Exposed configuration attributes can be configured with arguments to
__init__
or by changing attributes on an initialized object.
Added in version 3.8.0.
If true, log warnings when timestamps drift into the future as allowed by
warning_threshold
and warning_interval
.
This object will only issue warnings when the returned timestamp drifts
more than warning_threshold
seconds into the future.
Defaults to 1 second.
This object will only issue warnings every warning_interval
seconds.
Defaults to 1 second.
Returns the timestamp that should be used if now
is the current
time and last
is the last timestamp returned by this object.
Intended for internal and testing use only; to generate timestamps,
call an instantiated MonotonicTimestampGenerator
object.
now (int) – an integer to be used as the current time, typically representing the current time in microseconds since the UNIX epoch
last (int) – an integer representing the last timestamp returned by this object
Was this page helpful?
ScyllaDB Python Driver is available under the Apache v2 License. ScyllaDB Python Driver is a fork of DataStax Python Driver. See Copyright here.
cassandra
- Exceptions and Enumscassandra.cluster
- Clusters and Sessionscassandra.policies
- Load balancing and Failure Handling Policiescassandra.auth
- Authenticationcassandra.metadata
- Schema and Ring Topologycassandra.metrics
- Performance Metricscassandra.query
- Prepared Statements, Batch Statements, Tracing, and Row Factoriescassandra.pool
- Hosts and Connection Poolscassandra.protocol
- Protocol Featurescassandra.encoder
- Encoders for non-prepared Statementscassandra.decoder
- Data Return Formatscassandra.concurrent
- Utilities for Concurrent Statement Executioncassandra.connection
- Low Level Connection Infocassandra.util
- Utilitiescassandra.timestamps
- Timestamp Generationcassandra.io.asyncioreactor
- asyncio
Event Loopcassandra.io.asyncorereactor
- asyncore
Event Loopcassandra.io.eventletreactor
- eventlet
-compatible Connectioncassandra.io.libevreactor
- libev
Event Loopcassandra.io.geventreactor
- gevent
-compatible Event Loopcassandra.io.twistedreactor
- Twisted Event Loopcassandra.cqlengine.models
- Table models for object mappingcassandra.cqlengine.columns
- Column types for object mapping modelscassandra.cqlengine.query
- Query and filter model objectscassandra.cqlengine.connection
- Connection management for cqlenginecassandra.cqlengine.management
- Schema management for cqlenginecassandra.cqlengine.usertype
- Model classes for User Defined Types