| | |
| | | * 所属协议名称 |
| | | */ |
| | | public String protocolName ; |
| | | /** |
| | | * 所属协议版本号 |
| | | */ |
| | | public short protocolVersion ; |
| | | /** |
| | | * 为优先级(从1开始,最小为1,各协议间优先级相差1),数字越小级别越高。 |
| | | * 若有多个协议,各个协议的上线处理类以优先级进行排序,优先级高的先处理上线数据。 |
| | |
| | | */ |
| | | public int errorMaxLength ; |
| | | |
| | | public AnnotationPrefixedDataAvailableVo(Class<?> clazz, String protocolName, int priority, int onLineDataMinLength, int headMinLength, int errorMaxLength){ |
| | | public AnnotationPrefixedDataAvailableVo(Class<?> clazz, String protocolName, short protocolVersion, int priority, int onLineDataMinLength, int headMinLength, int errorMaxLength){ |
| | | this.clazz = clazz ; |
| | | this.protocolName = protocolName ; |
| | | this.protocolVersion = protocolVersion ; |
| | | this.priority = priority ; |
| | | this.onLineDataMinLength = onLineDataMinLength ; |
| | | this.headMinLength = headMinLength ; |