public class RocketmqProducer extends Object implements Closeable
| Constructor and Description |
|---|
RocketmqProducer(RocketmqConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
publish(org.noear.solon.cloud.model.Event event,
String topic) |
public RocketmqProducer(RocketmqConfig config)
public boolean publish(org.noear.solon.cloud.model.Event event,
String topic)
throws org.apache.rocketmq.client.exception.MQClientException,
org.apache.rocketmq.remoting.exception.RemotingException,
org.apache.rocketmq.client.exception.MQBrokerException,
InterruptedException
org.apache.rocketmq.client.exception.MQClientExceptionorg.apache.rocketmq.remoting.exception.RemotingExceptionorg.apache.rocketmq.client.exception.MQBrokerExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2025. All rights reserved.