package com.red.circle.mq.rocket.business.failmessage;

/**
 * RocketMQ 失败消息 Redis Key
 */
public class RocketMqFailMessageKeys {

    private static final String PREFIX = "mq:fail:";

    /**
     * 消息详情 Hash Key
     * mq:fail:message:{bizNo}
     */
    public static String getMessageDetailKey(String bizNo) {
        return PREFIX + "message:" + bizNo;
    }

    /**
     * 重试队列 ZSet Key
     * mq:fail:retry:queue
     */
    public static String getRetryQueueKey() {
        return PREFIX + "retry:queue";
    }

    /**
     * Tag 分组 Set Key
     * mq:fail:tag:{tag}
     */
    public static String getTagGroupKey(String tag) {
        return PREFIX + "tag:" + tag;
    }
}
