1
zj
2024-10-21 a54e43c6d57c82660d46b24b0720175314960d78
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package project.monitor;
 
import java.util.HashSet;
import java.util.Set;
 
public class AutoMonitorAddressConfigLock {
    
    private static final Set<String> filter = new HashSet<String>();
 
    public static boolean add(String order_no) {
        if (!filter.add(order_no)) {
            return false;
        } else {
            return true;
        }
    }
 
    public static void remove(String order_no) {
        filter.remove(order_no);
 
    }
 
}