public void setEncodeType(final int encodeType) {
        switch (encodeType) {
        case 0:
            this.encodeType = Codec_Type.JAVA;
            break;
        case 1:
            this.encodeType = Codec_Type.HESSIAN1;
            break;
        default:
            throw new RuntimeException("Unknown encode type " + this.encodeType
                + ",valid encode type is 0(java) or 1(hessian1).");
        }
    }
Returns value of the <b>ImmediateFlush</b> option.
metamorphosis-client-extension/src/main/java/com/taobao/metamorphosis/client/extension/log4j/StreamAppender.java