A policy that always gives the same sequence of consistency decisions.
def google.appengine.datastore.datastore_stub_util.PseudoRandomHRConsistencyPolicy.__init__ |
( |
|
self, |
|
|
|
probability = .5 , |
|
|
|
seed = 0 |
|
) |
| |
Constructor.
Args:
probability: A number between 0 and 1 that is the likelihood of a
transaction applying before a global query is executed.
seed: A hashable object to use as a seed. Use None to use the current
timestamp.
def google.appengine.datastore.datastore_stub_util.PseudoRandomHRConsistencyPolicy.SetProbability |
( |
|
self, |
|
|
|
probability |
|
) |
| |
Change the probability of a transaction applying.
Args:
probability: A number between 0 and 1 that determins the probability of a
transaction applying before a global query is run.
def google.appengine.datastore.datastore_stub_util.PseudoRandomHRConsistencyPolicy.SetSeed |
( |
|
self, |
|
|
|
seed |
|
) |
| |
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/datastore/datastore_stub_util.py