public class TopicRouterPatterned<C,R> extends Object implements TopicRouter<C,R>
| 构造器和说明 |
|---|
TopicRouterPatterned(RoutingFactory<C,R> routerFactory) |
public TopicRouterPatterned(RoutingFactory<C,R> routerFactory)
public 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 - 监听器public List<TopicListenerHolder<C,R>> matching(String topic)
TopicRoutermatching 在接口中 TopicRouter<C,R>Copyright © 2023. All rights reserved.