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