Search in sources :

Example 1 with FstCodec

use of com.jn.agileway.codec.serialization.fst.FstCodec in project agileway by fangjinuo.

the class RedisTemplates method newCodec.

public static Codec newCodec(BuiltinCodecType codecType) {
    codecType = codecType == null ? BuiltinCodecType.EASYJSON : codecType;
    Codec codec = null;
    switch(codecType) {
        case JSCKSON:
            codec = new JacksonCodec();
            break;
        case JDK:
            codec = new JdkCodec();
            break;
        case KRYO:
            codec = new KryoCodec();
            break;
        case HESSIAN:
            codec = new HessianCodec();
            break;
        case PROTOSTUFF:
            codec = new ProtostuffCodec();
            break;
        case FSE:
            codec = new FseCodec();
            break;
        case FST:
            codec = new FstCodec();
            break;
        case CBOR:
            codec = new CborJacksonCodec();
            break;
        case MSGPACK:
            codec = new MsgPackCodec();
            break;
        case XSON:
            codec = new XsonCodec();
            break;
        case BSON:
            codec = new BsonCodec();
            break;
        case EASYJSON:
        default:
            codec = new EasyjsonCodec();
            break;
    }
    return codec;
}
Also used : HessianCodec(com.jn.agileway.codec.serialization.hessian.HessianCodec) CborJacksonCodec(com.jn.agileway.codec.serialization.cbor.CborJacksonCodec) FseCodec(com.jn.agileway.codec.serialization.fse.FseCodec) JdkCodec(com.jn.agileway.codec.serialization.jdk.JdkCodec) XsonCodec(com.jn.agileway.codec.serialization.xson.XsonCodec) KryoCodec(com.jn.agileway.codec.serialization.kryo.KryoCodec) ProtostuffCodec(com.jn.agileway.codec.serialization.protostuff.ProtostuffCodec) EasyjsonCodec(com.jn.agileway.codec.serialization.json.EasyjsonCodec) JdkCodec(com.jn.agileway.codec.serialization.jdk.JdkCodec) MsgPackCodec(com.jn.agileway.codec.serialization.msgpack.MsgPackCodec) EasyjsonCodec(com.jn.agileway.codec.serialization.json.EasyjsonCodec) ProtostuffCodec(com.jn.agileway.codec.serialization.protostuff.ProtostuffCodec) Codec(com.jn.agileway.codec.Codec) CborJacksonCodec(com.jn.agileway.codec.serialization.cbor.CborJacksonCodec) HessianCodec(com.jn.agileway.codec.serialization.hessian.HessianCodec) FstCodec(com.jn.agileway.codec.serialization.fst.FstCodec) BsonCodec(com.jn.agileway.codec.serialization.bson.BsonCodec) JacksonCodec(com.jn.agileway.codec.serialization.json.JacksonCodec) KryoCodec(com.jn.agileway.codec.serialization.kryo.KryoCodec) XsonCodec(com.jn.agileway.codec.serialization.xson.XsonCodec) FseCodec(com.jn.agileway.codec.serialization.fse.FseCodec) MsgPackCodec(com.jn.agileway.codec.serialization.msgpack.MsgPackCodec) CborJacksonCodec(com.jn.agileway.codec.serialization.cbor.CborJacksonCodec) JacksonCodec(com.jn.agileway.codec.serialization.json.JacksonCodec) FstCodec(com.jn.agileway.codec.serialization.fst.FstCodec) BsonCodec(com.jn.agileway.codec.serialization.bson.BsonCodec)

Aggregations

Codec (com.jn.agileway.codec.Codec)1 BsonCodec (com.jn.agileway.codec.serialization.bson.BsonCodec)1 CborJacksonCodec (com.jn.agileway.codec.serialization.cbor.CborJacksonCodec)1 FseCodec (com.jn.agileway.codec.serialization.fse.FseCodec)1 FstCodec (com.jn.agileway.codec.serialization.fst.FstCodec)1 HessianCodec (com.jn.agileway.codec.serialization.hessian.HessianCodec)1 JdkCodec (com.jn.agileway.codec.serialization.jdk.JdkCodec)1 EasyjsonCodec (com.jn.agileway.codec.serialization.json.EasyjsonCodec)1 JacksonCodec (com.jn.agileway.codec.serialization.json.JacksonCodec)1 KryoCodec (com.jn.agileway.codec.serialization.kryo.KryoCodec)1 MsgPackCodec (com.jn.agileway.codec.serialization.msgpack.MsgPackCodec)1 ProtostuffCodec (com.jn.agileway.codec.serialization.protostuff.ProtostuffCodec)1 XsonCodec (com.jn.agileway.codec.serialization.xson.XsonCodec)1