接口 PackableMethod
-
- 所有已知实现类:
StubMethodDescriptor
public interface PackableMethodA packable method is used to customize serialization for methods. It can provide a common wrapper for RESP / Protobuf.
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interfacePackableMethod.Packstatic interfacePackableMethod.UnPack
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 PackableMethod.PackgetRequestPack()PackableMethod.UnPackgetRequestUnpack()PackableMethod.PackgetResponsePack()PackableMethod.UnPackgetResponseUnpack()default byte[]packRequest(Object request)default byte[]packResponse(Object response)default ObjectparseRequest(byte[] data)default ObjectparseResponse(byte[] data)
-
-
-
方法详细资料
-
parseRequest
default Object parseRequest(byte[] data) throws IOException, ClassNotFoundException
-
parseResponse
default Object parseResponse(byte[] data) throws IOException, ClassNotFoundException
-
packRequest
default byte[] packRequest(Object request) throws IOException
- 抛出:
IOException
-
packResponse
default byte[] packResponse(Object response) throws IOException
- 抛出:
IOException
-
getRequestPack
PackableMethod.Pack getRequestPack()
-
getResponsePack
PackableMethod.Pack getResponsePack()
-
getResponseUnpack
PackableMethod.UnPack getResponseUnpack()
-
getRequestUnpack
PackableMethod.UnPack getRequestUnpack()
-
-