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