public class RocketmqProducer extends Object implements Closeable
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 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2024. All rights reserved.