Detached state prepared for an atomic container replacement. 更多...
#include <Container.h>
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()
|
virtualdefault |
Releases PreparedState resources.
成员函数说明
◆ commit()
|
pure virtualnoexcept |
Publish the staged state; the operation is non-throwing.
在 eve::building::BuildingGarrisonContainerAdapter::PreparedState, eve::card::CardContainerAdapter::PreparedState, eve::inventory::InventoryContainerAdapter::PreparedState , 以及 eve::vehicle::VehicleSeatContainerAdapter::PreparedState 内被实现.
◆ rollback()
|
pure virtualnoexcept |
Abandon an unpublished stage; the operation is non-throwing.
在 eve::building::BuildingGarrisonContainerAdapter::PreparedState, eve::card::CardContainerAdapter::PreparedState, eve::inventory::InventoryContainerAdapter::PreparedState , 以及 eve::vehicle::VehicleSeatContainerAdapter::PreparedState 内被实现.
该类的文档由以下文件生成:
- src/engine/common/Container.h