com.github.javaclub.mq.client.producer.manager.LocalFileManager Maven / Gradle / Ivy
package com.github.javaclub.mq.client.producer.manager;
import java.io.IOException;
import com.github.javaclub.mq.client.producer.Producer;
import com.github.javaclub.mq.client.producer.message.PubMessage;
/**
* 发送失败的消息,保存本地文件,容灾
*/
public interface LocalFileManager {
public void init() throws IOException;
public boolean addFailedMsg(PubMessage msg, boolean isHalf);
public void setProducer(Producer producer);
public void setPubId(int pubId);
}