#
luxiaotao1123
2024-11-26 c7ac2c8bb899b0785daaa9f72a69581bdb93fef1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.zy.acs.manager.core.domain.type;
 
public enum BlockSeverityType {
 
//    NONE(0),
    NONE(0),
    SEVERE(30000),
    ;
 
    public long duration;
 
    BlockSeverityType(long duration) {
        this.duration = duration;
    }
 
    public static BlockSeverityType query(Long duration) {
        if (null == duration) {
            return BlockSeverityType.NONE;
        }
        if (duration > SEVERE.duration) {
            return BlockSeverityType.SEVERE;
        }
        return BlockSeverityType.NONE;
    }
 
}