public class EventObserver extends java.lang.Object implements CloudEventHandler
构造器和说明 |
---|
EventObserver(EventLevel level,
java.lang.String group,
java.lang.String topic,
java.lang.String tag,
int qos) |
限定符和类型 | 方法和说明 |
---|---|
void |
addHandler(CloudEventHandler handler)
添加云事件处理
|
java.lang.String |
getGroup() |
EventLevel |
getLevel() |
int |
getQos() |
java.lang.String |
getTag() |
java.lang.String |
getTopic() |
boolean |
handle(Event event)
处理
|
public EventObserver(EventLevel level, java.lang.String group, java.lang.String topic, java.lang.String tag, int qos)
public EventLevel getLevel()
public java.lang.String getGroup()
public java.lang.String getTopic()
public java.lang.String getTag()
public int getQos()
public void addHandler(CloudEventHandler handler)
public boolean handle(Event event) throws java.lang.Throwable
handle
在接口中 CloudEventHandler
event
- 事件java.lang.Throwable