Browse Source

计数线程处理调整

master
林万龙 3 years ago
parent
commit
1e9ba6d6a2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/java/com/telpo/iotgateway/listener/IotMessageListener.java

+ 1
- 1
src/main/java/com/telpo/iotgateway/listener/IotMessageListener.java View File

@@ -19,7 +19,7 @@ import java.util.concurrent.atomic.AtomicInteger;
@Component @Component
public class IotMessageListener implements MessageListener { public class IotMessageListener implements MessageListener {


private AtomicInteger count = new AtomicInteger(0);
private volatile AtomicInteger count = new AtomicInteger(0);
/** /**
* Runnable:实现了Runnable接口,jdk就知道这个类是一个线程 * Runnable:实现了Runnable接口,jdk就知道这个类是一个线程
*/ */


Loading…
Cancel
Save