public interface EventRouter
| Modifier and Type | Method and Description |
|---|---|
<P> void |
add(String topicExpr,
int index,
EventListener<P> listener)
添加监听
|
default int |
count(String topic)
计数
|
List<EventListenerHolder> |
matching(String topic)
路由匹配
|
<P> void |
remove(String topicExpr)
移除监听
|
<P> void |
remove(String topicExpr,
EventListener<P> listener)
移除监听
|
<P> void add(String topicExpr, int index, EventListener<P> listener)
topicExpr - 主题表达式index - 顺序位listener - 监听器<P> void remove(String topicExpr, EventListener<P> listener)
topicExpr - 主题表达式listener - 监听器<P> void remove(String topicExpr)
topicExpr - 主题表达式List<EventListenerHolder> matching(String topic)
default int count(String topic)
Copyright © 2025. All rights reserved.