public class CloudEventObserverManger extends Object
| Constructor and Description |
|---|
CloudEventObserverManger() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String topic,
EventLevel level,
String group,
String topicRaw,
String tag,
int qos,
CloudEventHandler handler)
添加主题事件处理
|
EventObserver |
getByTopic(String topic)
获取事件处理
|
EventObserver |
getByTopicAndTag(String topic,
String tag)
获取事件处理(支持 tag)
|
Set<String> |
topicAll()
所有主题
|
EventObserverMap |
topicOf(String topic)
主题映射射
|
int |
topicSize()
主题数量
|
public int topicSize()
public EventObserverMap topicOf(String topic)
public EventObserver getByTopic(String topic)
public EventObserver getByTopicAndTag(String topic, String tag)
public void add(String topic, EventLevel level, String group, String topicRaw, String tag, int qos, CloudEventHandler handler)
Copyright © 2025. All rights reserved.