public interface CustomHessianSerializer<T>
| 限定符和类型 | 方法和说明 |
|---|---|
T |
decodeObject(AbstractByteBuf data,
Map<String,String> context)
反序列化,只有类型,返回对象
|
void |
decodeObjectByTemplate(AbstractByteBuf data,
Map<String,String> context,
T template)
反序列化,已有数据,填充字段
|
AbstractByteBuf |
encodeObject(T object,
Map<String,String> context)
序列化
|
void decodeObjectByTemplate(AbstractByteBuf data, Map<String,String> context, T template) throws SofaRpcException
data - 原始字节数组template - 模板对象context - 上下文SofaRpcException - 序列化异常T decodeObject(AbstractByteBuf data, Map<String,String> context) throws SofaRpcException
data - 原始字节数组context - 上下文SofaRpcException - 序列化异常AbstractByteBuf encodeObject(T object, Map<String,String> context)
object - 对象context - 上下文SofaRpcException - 序列化异常Copyright © 2008–2018 The Ant Financial. All rights reserved.