新版仿ok交易所-后端
zj
2025-01-06 6e21cf6973aa1898259ddceda665f0f1b06272ab
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
package com.yami.trading.huobi.data;
 
import com.yami.trading.huobi.data.model.AdjustmentValue;
 
import java.math.BigDecimal;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
 
public class AdjustmentValueCache {
    /**
     * 当前值
     */
    private static volatile Map<String, BigDecimal> currentValue = new ConcurrentHashMap();
    /**
     * 延时值
     */
    private static volatile Map<String, AdjustmentValue> delayValue = new ConcurrentHashMap();
 
    public static Map<String, BigDecimal> getCurrentValue() {
        return currentValue;
    }
 
    public static Map<String, AdjustmentValue> getDelayValue() {
        return delayValue;
    }
 
}