载入中...
搜索中...
未找到
eve::container::IContainer::PreparedState类 参考abstract

Detached state prepared for an atomic container replacement. 更多...

#include <Container.h>

类 eve::container::IContainer::PreparedState 继承关系图:
eve::building::BuildingGarrisonContainerAdapter::PreparedState eve::card::CardContainerAdapter::PreparedState eve::inventory::InventoryContainerAdapter::PreparedState eve::vehicle::VehicleSeatContainerAdapter::PreparedState

Public 成员函数

virtual ~PreparedState ()=default
 Releases PreparedState resources.
 
virtual void commit () noexcept=0
 Publish the staged state; the operation is non-throwing.
 
virtual void rollback () noexcept=0
 Abandon an unpublished stage; the operation is non-throwing.
 

详细描述

Detached state prepared for an atomic container replacement.

commit() and rollback() are deliberately non-throwing. A prepared state owns every allocation needed by commit, so a coordinator can prepare all participants before making any membership observable.

在文件 Container.h 第 296 行定义.

构造及析构函数说明

◆ ~PreparedState()

virtual eve::container::IContainer::PreparedState::~PreparedState ( )
virtualdefault

Releases PreparedState resources.

成员函数说明

◆ commit()

virtual void eve::container::IContainer::PreparedState::commit ( )
pure virtualnoexcept

◆ rollback()

virtual void eve::container::IContainer::PreparedState::rollback ( )
pure virtualnoexcept

该类的文档由以下文件生成: