public class CloudEventServiceKafkaImpl extends Object implements org.noear.solon.cloud.service.CloudEventServicePlus, Closeable, org.noear.solon.core.bean.LifecycleBean
| 构造器和说明 |
|---|
CloudEventServiceKafkaImpl(org.noear.solon.cloud.CloudProps cloudProps) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
attention(org.noear.solon.cloud.annotation.EventLevel level,
String channel,
String group,
String topic,
String tag,
int qos,
org.noear.solon.cloud.CloudEventHandler observer) |
void |
close() |
String |
getChannel() |
String |
getGroup() |
protected boolean |
onReceive(org.noear.solon.cloud.model.Event event)
处理接收事件
|
protected boolean |
onReceiveDo(org.noear.solon.cloud.model.Event event)
处理接收事件
|
void |
postStart() |
boolean |
publish(org.noear.solon.cloud.model.Event event) |
public CloudEventServiceKafkaImpl(org.noear.solon.cloud.CloudProps cloudProps)
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,
int qos,
org.noear.solon.cloud.CloudEventHandler observer)
attention 在接口中 org.noear.solon.cloud.service.CloudEventServicepublic void postStart()
throws Throwable
postStart 在接口中 org.noear.solon.core.LifecycleThrowableprotected boolean onReceive(org.noear.solon.cloud.model.Event event)
protected boolean onReceiveDo(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 void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2024. All rights reserved.