com.jeesuite.amqp.AbstractProducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jeesuite-amqp-adapter Show documentation
Show all versions of jeesuite-amqp-adapter Show documentation
MQ适配器,支持各种云厂商云MQ,已经原生kafka,RocketMQ,RabbitMQ等
The newest version!
package com.jeesuite.amqp;
import com.jeesuite.amqp.MQContext.ActionType;
public abstract class AbstractProducer implements MQProducer {
@Override
public void start() throws Exception {}
@Override
public void shutdown() {}
public void handleSuccess(MQMessage message) {
MQContext.processMessageLog(message,ActionType.pub, null);
}
public void handleError(MQMessage message, Throwable e) {
MQContext.processMessageLog(message,ActionType.pub, e);
}
}