KKSU
2024-12-31 e081193a764667cb091390b034795ee05a36b4fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package cc.mrbird.febs.rabbit.enumerates;
 
import cc.mrbird.febs.rabbit.constants.ExchangeConstants;
import cc.mrbird.febs.rabbit.constants.QueueConstants;
import cc.mrbird.febs.rabbit.constants.RouteKeyConstants;
import lombok.Getter;
 
@Getter
public enum RabbitQueueEnum {
 
    /**
     * 节点升级
     */
   RUN_VIP_NODE_UP(ExchangeConstants.RUN_VIP_NODE_UP,
            RouteKeyConstants.RUN_VIP_NODE_UP,
            QueueConstants.RUN_VIP_NODE_UP),
 
    /**
     * 购买成功消息
     */
   RUN_VIP_OPERATION_CHARGE(ExchangeConstants.RUN_VIP_OPERATION_CHARGE,
            RouteKeyConstants.RUN_VIP_OPERATION_CHARGE,
            QueueConstants.RUN_VIP_OPERATION_CHARGE),
 
    /**
     * 充值自动过期
     */
   RUN_VIP_OPERATION_CHARGE_FAIL(ExchangeConstants.RUN_VIP_OPERATION_CHARGE_FAIL,
            RouteKeyConstants.RUN_VIP_OPERATION_CHARGE_FAIL,
            QueueConstants.RUN_VIP_OPERATION_CHARGE_FAIL),
    RUN_VIP_OPERATION_CHARGE_FAIL_TTL(ExchangeConstants.RUN_VIP_OPERATION_CHARGE_FAIL_TTL,
            RouteKeyConstants.RUN_VIP_OPERATION_CHARGE_FAIL_TTL,
            QueueConstants.RUN_VIP_OPERATION_CHARGE_FAIL_TTL),;
 
    private String exchange;
 
    private String route;
 
    private String queue;
 
    RabbitQueueEnum(String exchange, String route, String queue) {
        this.exchange = exchange;
        this.route = route;
        this.queue = queue;
    }
}