Methods
|
|
|
|
__contains__
|
__contains__ ( self, ob )
|
|
_cleanup
|
_cleanup ( self, committed )
|
|
_prepare
|
_prepare ( self )
Get votes from all participants
Ask all participants if they're ready to vote, up to N+1 times (where
N is the number of participants), until all agree they are ready, or
an exception occurs. N+1 iterations is sufficient for any acyclic
structure of cascading data managers. Any more than that, and either
there's a cascade cycle or a broken participant is always returning a
false value from its readyToVote() method.
Once all participants are ready, ask them all to vote.
|
|
abort
|
abort ( self )
|
|
addInfo
|
addInfo ( self, **info )
Exceptions
|
|
exceptions.BrokenTransaction
exceptions.TransactionInProgress
|
|
|
begin
|
begin ( self, **info )
|
|
commit
|
commit ( self )
Exceptions
|
|
exceptions.BrokenTransaction
exceptions.OutsideTransaction
|
|
|
fail
|
fail ( self )
|
|
getInfo
|
getInfo ( self )
|
|
getTimestamp
|
getTimestamp ( self )
Return the time that the transaction began, in time.time()
format, or None if no transaction in progress.
|
|
isActive
|
isActive ( self )
|
|
join
|
join ( self, participant )
Exceptions
|
|
exceptions.BrokenTransaction
exceptions.OutsideTransaction
exceptions.TransactionInProgress
|
|
|
removeParticipant
|
removeParticipant ( self, participant )
|