public static CommandType parseByte(byte b) {
        switch (b) {
            case 0:
                return SET;
            case 1:
                return CAS;
            case 2:
                return INC;
            case 3:
                return GET;
        }
        throw new IllegalArgumentException();
    }
command type
@author boyan (boyan@alibaba-inc.com)

2018-Apr-25 1:34:15 PM
jraft-test/src/main/java/com/alipay/sofa/jraft/test/atomic/server/CommandType.java