fix comment

This commit is contained in:
Looly
2025-01-18 20:36:22 +08:00
parent 1285f94cb0
commit adf03e7125

View File

@@ -32,7 +32,12 @@ public interface EventPublisher {
EventPublisher register(Subscriber subscriber);
/**
* 发布事件,事件发布者将事件发布给所有订阅者
* 发布事件,事件发布者将事件发布给多个订阅者,可以自定义发布策略,如:
* <ul>
* <li>所有订阅者都接收此消息(多订阅)</li>
* <li>订阅者按照顺序或权重接收此消息,接收后其它订阅者不再接收。(单订阅)</li>
* <li>按照自定义规则选择要接收消息的订阅者,如根据消息或实践类型(选择性多订阅)</li>
* </ul>
*
* @param event 事件对象
*/