com.alipay.remoting.serialization
Class SerializerManager
java.lang.Object
com.alipay.remoting.serialization.SerializerManager
public class SerializerManager
- extends Object
Manage all serializers.
Notice: Serializer is different with Codec.
Serializer is mainly used to deserialize bytes to object, or serialize object to bytes. We can use hessian, json, protocol buff etc.
Codec mainly used to encode bytes or decode bytes according to the protocol format. We can use ProtocolCodeBasedEncoder or LengthFieldBasedFrameDecoder etc.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hessian2
public static final byte Hessian2
- See Also:
- Constant Field Values
SerializerManager
public SerializerManager()
getSerializer
public static Serializer getSerializer(int idx)
addSerializer
public static void addSerializer(int idx,
Serializer serializer)
Copyright © 2018. All rights reserved.