Package org.apache.dubbo.rpc.model
Interface PackableMethod
- All Known Implementing Classes:
StubMethodDescriptor
public interface PackableMethod
A packable method is used to customize serialization for methods. It can provide a common wrapper
for RESP / Protobuf.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault byte[]packRequest(Object request) default byte[]packResponse(Object response) default ObjectparseRequest(byte[] data) default ObjectparseResponse(byte[] data) default ObjectparseResponse(byte[] data, boolean isReturnTriException)
-
Method Details
-
parseRequest
- Throws:
Exception
-
parseResponse
- Throws:
Exception
-
parseResponse
- Throws:
Exception
-
packRequest
- Throws:
Exception
-
packResponse
- Throws:
Exception
-
needWrapper
default boolean needWrapper() -
getRequestPack
Pack getRequestPack() -
getResponsePack
Pack getResponsePack() -
getResponseUnpack
UnPack getResponseUnpack() -
getRequestUnpack
UnPack getRequestUnpack()
-