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