public class CloudEventServiceManagerImpl extends Object implements CloudEventServiceManager
| Constructor and Description |
|---|
CloudEventServiceManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
attention(EventLevel level,
String channel,
String group,
String topic,
String tag,
int qos,
CloudEventHandler observer)
关注事件
|
CloudEventServicePlus |
get(String channel)
获取事件服务
|
CloudEventInterceptor |
getEventInterceptor()
获取拦截器
|
CloudEventServicePlus |
getOrThrow(String channel)
获取事件服务,如果没有则异常
|
boolean |
publish(Event event)
发布事件
|
void |
register(CloudEventServicePlus service)
注册事件服务
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewTran, newTranAndJoinpublic CloudEventInterceptor getEventInterceptor()
getEventInterceptor in interface CloudEventServiceManagerpublic void register(CloudEventServicePlus service)
register in interface CloudEventServiceManagerservice - 事件服务public CloudEventServicePlus get(String channel)
get in interface CloudEventServiceManagerchannel - 通道public CloudEventServicePlus getOrThrow(String channel)
getOrThrow in interface CloudEventServiceManagerchannel - 通道public boolean publish(Event event) throws CloudEventException
publish in interface CloudEventServiceevent - 事件CloudEventExceptionpublic void attention(EventLevel level, String channel, String group, String topic, String tag, int qos, CloudEventHandler observer)
attention in interface CloudEventServicelevel - 级别channel - 通道group - 分组topic - 主题observer - 观察者tag - 标签qos - 服务质量Copyright © 2025. All rights reserved.