|
@@ -23,7 +23,6 @@ import java.net.InetSocketAddress;
|
23
|
23
|
import java.util.Date;
|
24
|
24
|
import java.util.HashMap;
|
25
|
25
|
import java.util.Map;
|
26
|
|
-import java.util.concurrent.TimeUnit;
|
27
|
26
|
|
28
|
27
|
@Log4j2
|
29
|
28
|
@Component
|
|
@@ -96,7 +95,7 @@ public class BootNettyChannelInboundHandlerAdapter extends ChannelInboundHandler
|
96
|
95
|
String MN = jsonObject.getString("MN");
|
97
|
96
|
String dataTime = jsonObject.getString("DataTime");
|
98
|
97
|
if (!adapter.redisQueueService.isElementExist(MN +":"+ CN +":"+ dataTime, dataTime)){
|
99
|
|
- adapter.redisQueueService.addElementWithExpire(MN +":"+ CN +":"+ dataTime, dataTime, 1, TimeUnit.HOURS);
|
|
98
|
+ adapter.redisQueueService.addElementWithExpire(MN +":"+ CN +":"+ dataTime, dataTime, 2, TimeUnit.HOURS);
|
100
|
99
|
adapter.redisQueueService.sendMessage(Constant.SERVER, jsonObject);
|
101
|
100
|
}
|
102
|
101
|
}
|
|
@@ -113,7 +112,7 @@ public class BootNettyChannelInboundHandlerAdapter extends ChannelInboundHandler
|
113
|
112
|
String MN = jsonObject.getString("MN");
|
114
|
113
|
String dataTime = jsonObject.getString("DataTime");
|
115
|
114
|
if (!adapter.redisQueueService.isElementExist(MN +":"+ CN +":"+ dataTime, dataTime)){
|
116
|
|
- adapter.redisQueueService.addElementWithExpire(MN +":"+ CN +":"+ dataTime, dataTime, 1, TimeUnit.HOURS);
|
|
115
|
+ adapter.redisQueueService.addElementWithExpire(MN +":"+ CN +":"+ dataTime, dataTime, 2, TimeUnit.HOURS);
|
117
|
116
|
adapter.redisQueueService.sendMessage(Constant.SERVER, jsonObject);
|
118
|
117
|
}
|
119
|
118
|
}
|