public class CloudEventServiceWaterImp extends Object implements org.noear.solon.cloud.service.CloudEventServicePlus
| 构造器和说明 |
|---|
CloudEventServiceWaterImp(org.noear.solon.cloud.CloudProps cloudProps) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
attention(org.noear.solon.cloud.annotation.EventLevel level,
String channel,
String group,
String topic,
String tag,
org.noear.solon.cloud.CloudEventHandler observer)
登记关注
|
String |
getChannel() |
String |
getEventReceive() |
String |
getEventSeal() |
String |
getGroup() |
String |
getSeal() |
boolean |
onReceive(String topicNew,
org.noear.solon.cloud.model.Event event)
处理接收事件
|
boolean |
publish(org.noear.solon.cloud.model.Event event) |
void |
subscribe()
执行订阅
|
public CloudEventServiceWaterImp(org.noear.solon.cloud.CloudProps cloudProps)
public String getSeal()
public boolean publish(org.noear.solon.cloud.model.Event event)
throws org.noear.solon.cloud.exception.CloudEventException
publish 在接口中 org.noear.solon.cloud.service.CloudEventServiceorg.noear.solon.cloud.exception.CloudEventExceptionpublic void attention(org.noear.solon.cloud.annotation.EventLevel level,
String channel,
String group,
String topic,
String tag,
org.noear.solon.cloud.CloudEventHandler observer)
attention 在接口中 org.noear.solon.cloud.service.CloudEventServicepublic void subscribe()
public boolean onReceive(String topicNew, org.noear.solon.cloud.model.Event event) throws Throwable
Throwablepublic String getChannel()
getChannel 在接口中 org.noear.solon.cloud.service.CloudEventServicePluspublic String getGroup()
getGroup 在接口中 org.noear.solon.cloud.service.CloudEventServicePluspublic String getEventSeal()
public String getEventReceive()
Copyright © 2023. All rights reserved.