KKSU
2024-02-20 d6ed2678974b2750fd3b552cd607f487fbac0927
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
package cc.mrbird.febs.rabbit.enumerates;
 
import cc.mrbird.febs.rabbit.constants.QueueConstants;
import lombok.Getter;
 
@Getter
public enum RabbitQueueEnum {
    OPEN_PRICE("exchange_open_price",
            "route_key_open_price",
            QueueConstants.QUEUE_OPEN_PRICE),
    /**
     * 延时不允许下注
     */
    NO_TIME("exchange_no_time",
            "route_key_no_time",
            QueueConstants.QUEUE_NO_TIME),
    NO_TIME_TTL("exchange_no_time_ttl",
            "route_key_no_time_ttl",
            QueueConstants.QUEUE_NO_TIME_TTL),
    /**
     * 延时
     */
    CHOU_JIANG_TIME("exchange_chou_jiang_time",
            "route_key_chou_jiang_time",
            QueueConstants.QUEUE_CHOU_JIANG_TIME),
    CHOU_JIANG_TIME_TTL("exchange_chou_jiang_time_ttl",
            "route_key_chou_jiang_time_ttl",
            QueueConstants.QUEUE_CHOU_JIANG_TIME_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;
    }
}