Table of Contents

Class: TransactionService ./src/peak/storage/transactions.py

Basic transaction service component

Base Classes   
binding.Component
Methods   
__contains__
_cleanup
_prepare
abort
addInfo
begin
commit
fail
getInfo
getTimestamp
isActive
join
removeParticipant
  __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.

Exceptions   
exceptions.NotReadyError( unready )
  abort 
abort ( self )

Exceptions   
exceptions.OutsideTransaction
  addInfo 
addInfo ( self,  **info )

Exceptions   
exceptions.BrokenTransaction
exceptions.TransactionInProgress
  begin 
begin ( self,  **info )

Exceptions   
exceptions.TransactionInProgress
  commit 
commit ( self )

Exceptions   
exceptions.BrokenTransaction
exceptions.OutsideTransaction
  fail 
fail ( self )

Exceptions   
exceptions.OutsideTransaction
  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 )


Table of Contents

This document was automatically generated on Mon Jan 6 01:11:04 2025 by HappyDoc version 2.1