public class CloudEventServiceJedisImpl extends java.lang.Object implements CloudEventServicePlus, org.noear.solon.core.bean.LifecycleBean
| 构造器和说明 |
|---|
CloudEventServiceJedisImpl(CloudProps cloudProps) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
attention(EventLevel level,
java.lang.String channel,
java.lang.String group,
java.lang.String topic,
java.lang.String tag,
int qos,
CloudEventHandler observer)
关注事件(相当于订阅)
|
java.lang.String |
getChannel()
获取通道配置
|
java.lang.String |
getGroup()
获取默认分组配置(即给所有的发送和订阅加上分组)
|
void |
postStart() |
boolean |
publish(Event event)
发布事件
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewTran, newTranAndJoinpublic CloudEventServiceJedisImpl(CloudProps cloudProps)
public boolean publish(Event event) throws CloudEventException
CloudEventServicepublish 在接口中 CloudEventServiceevent - 事件CloudEventExceptionpublic void attention(EventLevel level, java.lang.String channel, java.lang.String group, java.lang.String topic, java.lang.String tag, int qos, CloudEventHandler observer)
CloudEventServiceattention 在接口中 CloudEventServicelevel - 事件级别channel - 通道group - 分组topic - 主题tag - 标签qos - 服务质量observer - 观察者public void postStart()
throws java.lang.Throwable
postStart 在接口中 org.noear.solon.core.Lifecyclejava.lang.Throwablepublic java.lang.String getChannel()
CloudEventServicePlusgetChannel 在接口中 CloudEventServicePluspublic java.lang.String getGroup()
CloudEventServicePlusgetGroup 在接口中 CloudEventServicePlus