|
|
package com.yoho.rfid.util;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.concurrent.BlockingQueue;
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
import java.util.concurrent.LinkedBlockingQueue;
|
|
|
|
|
|
import JW.UHF.JWReader;
|
|
|
import JW.UHF.Tag;
|
|
|
import com.yoho.rfid.model.RfidClient;
|
|
|
|
|
|
public class SocketConstant {
|
|
|
|
|
|
// 默认timeout 时间 60s
|
|
|
public static final int SOCKET_TIMEOUT = 60 * 1000;
|
|
|
|
|
|
/**
|
|
|
* 指定时间没有数据上报,则认为已经离开货架,给前端返回数据 1.5s
|
|
|
*/
|
...
|
...
|
@@ -38,11 +30,6 @@ public class SocketConstant { |
|
|
public static Map<String, JWReader> rfidJWReaderValidMap = new ConcurrentHashMap<>();
|
|
|
|
|
|
/**
|
|
|
* mac和ip的对应关系
|
|
|
*/
|
|
|
public static Map<String, String> macIpMap = new HashMap<>();
|
|
|
|
|
|
/**
|
|
|
* map中每个ip(读写器)一条记录,具体存放sku和最新一条上报的时间戳
|
|
|
*/
|
|
|
public static Map<String, Map<String, Long>> allTags = new ConcurrentHashMap<String, Map<String, Long>>();
|
...
|
...
|
|