public final class TopicRouterImpl<C,R> extends Object implements TopicRouter<C,R>
| 构造器和说明 |
|---|
TopicRouterImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(String topic,
int index,
TopicListener<Payload<C,R>> listener)
添加监听
|
void |
handle(Payload<C,R> payload)
接收事件并路由
|
void |
remove(String topic,
TopicListener<Payload<C,R>> listener)
移除监听
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassertTopicpublic void add(String topic, int index, TopicListener<Payload<C,R>> listener)
add 在接口中 TopicRouter<C,R>topic - 主题index - 顺序位listener - 监听器public void remove(String topic, TopicListener<Payload<C,R>> listener)
remove 在接口中 TopicRouter<C,R>topic - 主题listener - 监听器Copyright © 2023. All rights reserved.