public interface MqClient
MqClient autoAck(boolean auto)
void subscribe(String topic, MqSubscription subscription) throws IOException
topic - 主题subscription - 订阅IOExceptionCompletableFuture<?> publish(String topic, String message) throws IOException
topic - 主题message - 消息IOExceptionCompletableFuture<?> publish(String topic, String message, Date scheduled) throws IOException
topic - 主题message - 消息scheduled - 设置预定执行时间IOExceptionCopyright © 2023. All rights reserved.