View source on GitHub |
A High Replication Datastore consistency policy based on elapsed time.
Inherits From: BaseHighReplicationConsistencyPolicy
, BaseConsistencyPolicy
, expected_type
This class tries to simulate performance seen in the high replication datastore using estimated probabilities of a transaction committing after a given amount of time.
Methods
SetClassificationMap
SetClassificationMap(
classification_map
)
Set the probability a txn will be applied after a given amount of time.
Args | |
---|---|
classification_map
|
A list of tuples containing (float between 0 and 1, number of milliseconds) that define the probability of a transaction applying after a given amount of time. |