package com.codingapi.tm.compensate.service; import com.codingapi.tm.compensate.model.TransactionCompensateMsg; import com.codingapi.tm.compensate.model.TxModel; import com.codingapi.tm.model.ModelName; import com.codingapi.tm.netty.model.TxGroup; import com.lorne.core.framework.exception.ServiceException; import java.util.List; /** * create by lorne on 2017/11/11 */ public interface CompensateService { boolean saveCompensateMsg(TransactionCompensateMsg transactionCompensateMsg); List loadModelList(); List loadCompensateTimes(String model); List loadCompensateByModelAndTime(String path); void autoCompensate(String compensateKey, TransactionCompensateMsg transactionCompensateMsg); boolean executeCompensate(String key) throws ServiceException; void reloadCompensate(TxGroup txGroup); boolean hasCompensate(); boolean delCompensate(String path); TxGroup getCompensateByGroupId(String groupId); }