sean.zhou
2022-07-22 9b2eedb85d53ca32610c32c6e50b5230ab3b16cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.dji.sample.manage.model;
 
import java.time.LocalDateTime;
import java.util.concurrent.ConcurrentHashMap;
 
/**
 * The demo is only for functional closure, which is not recommended,
 * and it is recommended to use caching for handling.
 * @author sean.zhou
 * @version 0.1
 * @date 2021/11/25
 */
public class DeviceStatusManager {
 
    public static final ConcurrentHashMap<String, LocalDateTime> STATUS_MANAGER =
            new ConcurrentHashMap<>(16);
 
    public static final Integer DEFAULT_ALIVE_SECOND = 30;
 
}