public class CloudEventManager extends Object implements CloudEventService
| 构造器和说明 |
|---|
CloudEventManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
attention(EventLevel level,
String channel,
String group,
String topic,
CloudEventHandler observer)
关注事件(相当于订阅)
|
CloudEventService |
get(String channel) |
protected CloudEventService |
getOrThrow(String channel) |
boolean |
publish(Event event)
发布事件
|
void |
register(String channel,
CloudEventService service) |
public void register(String channel, CloudEventService service)
public CloudEventService get(String channel)
protected CloudEventService getOrThrow(String channel)
public boolean publish(Event event) throws CloudEventException
CloudEventServicepublish 在接口中 CloudEventServiceevent - 事件CloudEventExceptionpublic void attention(EventLevel level, String channel, String group, String topic, CloudEventHandler observer)
CloudEventServiceattention 在接口中 CloudEventServicelevel - 事件级别channel - 通道group - 分组topic - 主题observer - 观察者Copyright © 2021. All rights reserved.