package com.njcn.msgpush.module.push.service.retry;

import com.njcn.msgpush.module.push.dal.dataobject.retry.MessageRetryHistoryDO;

/**
 * @author caozehui
 * @data 2026-03-04
 */
public interface MessageRetryHistoryService {
    boolean add(MessageRetryHistoryDO messageRetryHistoryDO);

    /**
     * 获取最大重试序号
     *
     * @param messageId 消息ID
     * @return
     */
    Integer getMaxRetrySequence(String messageId);
}
