| package com.zy.acs.manager.core.domain.type; | 
|   | 
| import com.zy.acs.manager.core.constant.MapDataConstant; | 
|   | 
| public enum BlockSeverityType { | 
|   | 
| //    NONE(0), | 
|     NONE(0), | 
|     SEVERE(5L * MapDataConstant.MAX_JAM_TIMEOUT), | 
|     ; | 
|   | 
|     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; | 
|     } | 
|   | 
| } |