载入中...
搜索中...
未找到
eve::action::IActionNotifyHandler类 参考abstract

Consumer-owned handler for one registered notify type. 更多...

#include <ActionNotifyRegistry.h>

Public 成员函数

virtual ~IActionNotifyHandler ()=default
 Releases IActionNotifyHandler resources.
 
virtual Result< void > handle (const ActionTimelineEvent &event, const ActionNotifyContext &context)=0
 Consume one already validated event.
 
virtual Result< void > update (const ActionActiveBlock &, const ActionNotifyContext &)
 Update one active state block after its boundary events were delivered.
 
virtual Result< void > sample (const ActionActiveBlock &, const ActionNotifyContext &) const
 Evaluate one preview sample without creating persistent side effects.
 
virtual Result< void > advance (const ActionNotifyContext &)
 Advance handler-owned transient instances after events and state updates.
 

详细描述

Consumer-owned handler for one registered notify type.

Handlers are invoked synchronously without locks. They must not retain event or context references; both are borrowed only for the call.

在文件 ActionNotifyRegistry.h 第 68 行定义.

构造及析构函数说明

◆ ~IActionNotifyHandler()

virtual eve::action::IActionNotifyHandler::~IActionNotifyHandler ( )
virtualdefault

Releases IActionNotifyHandler resources.

成员函数说明

◆ advance()

virtual Result< void > eve::action::IActionNotifyHandler::advance ( const ActionNotifyContext &  )
inlinevirtual

Advance handler-owned transient instances after events and state updates.

参数
contextCurrent deterministic action time and synchronous bindings.
返回
Applied/NoOp or a structured maintenance failure.
备注
Called once per unique handler instance per ActionBlockRuntime apply.

在文件 ActionNotifyRegistry.h 第 105 行定义.

引用了 eve::NoOp, eve::Status::success() , 以及 eve::Result< T >::success().

◆ handle()

virtual Result< void > eve::action::IActionNotifyHandler::handle ( const ActionTimelineEvent &  event,
const ActionNotifyContext &  context 
)
pure virtual

Consume one already validated event.

参数
eventOwning boundary projection borrowed only for this call.
contextOwning dispatch context borrowed only for this call.
返回
Applied/NoOp or a structured consumer failure.

◆ sample()

virtual Result< void > eve::action::IActionNotifyHandler::sample ( const ActionActiveBlock &  ,
const ActionNotifyContext &   
) const
inlinevirtual

Evaluate one preview sample without creating persistent side effects.

参数
blockOwning active-state projection borrowed only for this call.
contextOwning preview context borrowed only for this call.
返回
Applied/NoOp or a structured preview failure.
备注
Implementations must be side-effect-free and must not retain references.

在文件 ActionNotifyRegistry.h 第 96 行定义.

引用了 eve::NoOp, eve::Status::success() , 以及 eve::Result< T >::success().

◆ update()

virtual Result< void > eve::action::IActionNotifyHandler::update ( const ActionActiveBlock &  ,
const ActionNotifyContext &   
)
inlinevirtual

Update one active state block after its boundary events were delivered.

参数
blockOwning active-state projection borrowed only for this call.
contextOwning dispatch context borrowed only for this call.
返回
Applied/NoOp or a structured consumer failure.
备注
The default is an explicit no-op for boundary-only handlers.

在文件 ActionNotifyRegistry.h 第 86 行定义.

引用了 eve::NoOp, eve::Status::success() , 以及 eve::Result< T >::success().


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