App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.datastore.datastore_stub_util.PseudoRandomHRConsistencyPolicy Class Reference
Inheritance diagram for google.appengine.datastore.datastore_stub_util.PseudoRandomHRConsistencyPolicy:
google.appengine.datastore.datastore_stub_util.BaseHighReplicationConsistencyPolicy google.appengine.datastore.datastore_stub_util.BaseConsistencyPolicy

Public Member Functions

def __init__
 
def SetProbability
 
def SetSeed
 

Detailed Description

A policy that always gives the same sequence of consistency decisions.

Constructor & Destructor Documentation

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.

Member Function Documentation

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 
)
Reset the seed.

The documentation for this class was generated from the following file: