public abstract class TopicRouterBase<C,R> extends Object implements TopicRouter<C,R>, Interceptor<C,R>
| 构造器和说明 |
|---|
TopicRouterBase() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addInterceptor(int index,
Interceptor interceptor)
添加拦截器
|
protected void |
assertTopic(String topic)
断言主题是否为空
|
void |
handle(Payload<C,R> payload)
接收事件
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, removedoInterceptpublic void addInterceptor(int index,
Interceptor interceptor)
addInterceptor 在接口中 TopicRouter<C,R>index - 顺序位interceptor - 拦截器public void handle(Payload<C,R> payload)
handle 在接口中 TopicRouter<C,R>payload - 事件负载protected void assertTopic(String topic)
topic - Copyright © 2023. All rights reserved.