载入中...
搜索中...
未找到
eve::transaction 命名空间参考

类

class  AtomicResourcePayment
 Coordinates a resource debit with one domain effect participant. 更多...
 
class  Coordinator
 Coordinates participant lifecycles with deterministic ordering. 更多...
 
struct  Event
 Deterministically ordered transaction lifecycle event. 更多...
 
class  ITransactionParticipant
 Synchronous participant contract for one coordinator transaction. 更多...
 
class  Ledger
 Deterministic owner and identifier allocator for transaction plans. 更多...
 
struct  Operation
 One inert, script-interpreted operation in a transaction plan. 更多...
 
class  Plan
 Immutable-after-validation operation plan for script-coordinated work. 更多...
 
class  ResourceDebitParticipant
 Adapts IResourceAccount debit semantics to Coordinator. 更多...
 
class  Transaction
 Script module factory for generic transaction ledgers. 更多...
 
class  TransactionContext
 Immutable context shared by every participant of one transaction. 更多...
 
struct  TransactionReceipt
 Observable summary returned after an atomic participant commit. 更多...
 

枚举

enum class  ResourceDebitState : std::uint8_t {
  Idle , Prepared , Committed , RolledBack ,
  Compensated
}
 Lifecycle state of a resource debit participant. 更多...
 
enum class  CoordinatorState {
  Committed , Compensated , CompensationFailed , RolledBack ,
  RollbackFailed , PartiallyCommitted
}
 Terminal or in-flight outcome of coordinator-managed participants. 更多...
 
enum class  State {
  Open , Validated , Committed , RolledBack ,
  Failed
}
 Lifecycle state of a generic transaction plan. 更多...
 

函数

std::string stateName (State state)
 Returns the stable lowercase name of a transaction state.
 
Operation * findMutable (std::deque< Operation > &operations, const std::string &id)
 
Operation * findMutable (std::deque< Operation > &operations, eve::OperationId id)
 
 Module_IMPL (Transaction, new Transaction())
 

枚举类型说明

◆ CoordinatorState

Terminal or in-flight outcome of coordinator-managed participants.

枚举值
Committed 
Compensated 
CompensationFailed 
RolledBack 
RollbackFailed 
PartiallyCommitted 

在文件 Transaction.h 第 81 行定义.

◆ ResourceDebitState

enum class eve::transaction::ResourceDebitState : std::uint8_t
strong

Lifecycle state of a resource debit participant.

枚举值
Idle 
Prepared 
Committed 
RolledBack 
Compensated 

在文件 ResourceAccountParticipant.h 第 20 行定义.

◆ State

enum class eve::transaction::State
strong

Lifecycle state of a generic transaction plan.

枚举值
Open 
Validated 
Committed 
RolledBack 
Failed 

在文件 Transaction.h 第 207 行定义.

函数说明

◆ findMutable() [1/2]

Operation * eve::transaction::findMutable ( std::deque< Operation > &  operations,
const std::string &  id 
)

◆ findMutable() [2/2]

Operation * eve::transaction::findMutable ( std::deque< Operation > &  operations,
eve::OperationId  id 
)

在文件 Transaction.cpp 第 396 行定义.

引用了 findMutable().

◆ Module_IMPL()

eve::transaction::Module_IMPL ( Transaction  ,
new   Transaction() 
)

◆ stateName()

EVENGINE_API_FOUNDATION std::string eve::transaction::stateName ( State  state)

Returns the stable lowercase name of a transaction state.

在文件 Transaction.cpp 第 319 行定义.

引用了 Committed, Failed, Open, RolledBack, state , 以及 Validated.