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()
|
virtualdefault |
Releases IActionNotifyHandler resources.
成员函数说明
◆ advance()
|
inlinevirtual |
Advance handler-owned transient instances after events and state updates.
- 参数
-
context Current 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()
|
pure virtual |
Consume one already validated event.
- 参数
-
event Owning boundary projection borrowed only for this call. context Owning dispatch context borrowed only for this call.
- 返回
- Applied/NoOp or a structured consumer failure.
◆ sample()
|
inlinevirtual |
Evaluate one preview sample without creating persistent side effects.
- 参数
-
block Owning active-state projection borrowed only for this call. context Owning 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()
|
inlinevirtual |
Update one active state block after its boundary events were delivered.
- 参数
-
block Owning active-state projection borrowed only for this call. context Owning 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().
该类的文档由以下文件生成:
- src/modules/action/ActionNotifyRegistry.h