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;
|
}
|
}
|