public class CloudEventObserverManger extends Object
| 构造器和说明 |
|---|
CloudEventObserverManger() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(String topic,
EventLevel level,
String group,
String topicRaw,
String tag,
CloudEventHandler observer)
添加主题事件处理
|
CloudEventHandler |
getByTopic(String topic)
获取事件处理
|
CloudEventHandler |
getByTopicAndTag(String topicAndTag)
获取事件处理(支持 tag)
|
CloudEventHandler |
getByTopicAndTag(String topic,
String tag)
获取事件处理(支持 tag)
|
Set<String> |
topicAll()
所有主题
|
int |
topicSize()
主题数量
|
Map<String,Set<String>> |
topicTags()
所有主题与标签
|
public int topicSize()
public CloudEventHandler getByTopic(String topic)
public CloudEventHandler getByTopicAndTag(String topicAndTag)
public CloudEventHandler getByTopicAndTag(String topic, String tag)
public void add(String topic, EventLevel level, String group, String topicRaw, String tag, CloudEventHandler observer)
Copyright © 2022. All rights reserved.