|
|
@@ -27,14 +27,14 @@ public class RfidServiceImpl implements IRfidService {
|
|
|
|
|
|
@Override
|
|
|
public void start(HardwareRfid hardwareRfid) {
|
|
|
- synchronized (this){
|
|
|
- taskExecutor.execute(() -> {
|
|
|
- rfidService(hardwareRfid.getManufacturerType()).start(hardwareRfid);
|
|
|
- log.info("===============thread name:{}===============", Thread.currentThread().getName());
|
|
|
- threadMap.computeIfAbsent(hardwareRfid.getIpAddress(), f -> Thread.currentThread());
|
|
|
- log.info("==============>线程数量:{}",threadMap.size());
|
|
|
- });
|
|
|
- }
|
|
|
+// synchronized (this){
|
|
|
+// taskExecutor.execute(() -> {
|
|
|
+// rfidService(hardwareRfid.getManufacturerType()).start(hardwareRfid);
|
|
|
+// log.info("===============thread name:{}===============", Thread.currentThread().getName());
|
|
|
+// threadMap.computeIfAbsent(hardwareRfid.getIpAddress(), f -> Thread.currentThread());
|
|
|
+// log.info("==============>线程数量:{}",threadMap.size());
|
|
|
+// });
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
@Override
|