Commit 65d3ae8304d5d5f446623b5e608c6c85d71cf152
1 parent
3ebf183b
update...
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/bsth/data/gpsdata/GpsRealData.java
| @@ -19,6 +19,7 @@ import org.springframework.stereotype.Component; | @@ -19,6 +19,7 @@ import org.springframework.stereotype.Component; | ||
| 19 | 19 | ||
| 20 | import java.util.*; | 20 | import java.util.*; |
| 21 | import java.util.concurrent.ConcurrentHashMap; | 21 | import java.util.concurrent.ConcurrentHashMap; |
| 22 | +import java.util.concurrent.ConcurrentMap; | ||
| 22 | import java.util.concurrent.TimeUnit; | 23 | import java.util.concurrent.TimeUnit; |
| 23 | 24 | ||
| 24 | /** | 25 | /** |
| @@ -32,7 +33,7 @@ public class GpsRealData implements CommandLineRunner { | @@ -32,7 +33,7 @@ public class GpsRealData implements CommandLineRunner { | ||
| 32 | 33 | ||
| 33 | static Logger logger = LoggerFactory.getLogger(GpsRealData.class); | 34 | static Logger logger = LoggerFactory.getLogger(GpsRealData.class); |
| 34 | 35 | ||
| 35 | - private static ConcurrentHashMap<String, GpsEntity> gpsMap; | 36 | + private static ConcurrentMap<String, GpsEntity> gpsMap; |
| 36 | 37 | ||
| 37 | //按线路分组设备号 | 38 | //按线路分组设备号 |
| 38 | private static TreeMultimap<String, String> lineCode2Devices; | 39 | private static TreeMultimap<String, String> lineCode2Devices; |