public class StubMethodDescriptor extends Object implements MethodDescriptor, PackableMethod
MethodDescriptor.RpcType| Constructor and Description |
|---|
StubMethodDescriptor(String methodName,
Class<?> requestClass,
Class<?> responseClass,
StubServiceDescriptor serviceDescriptor,
MethodDescriptor.RpcType rpcType,
Pack requestPack,
Pack responsePack,
UnPack requestUnpack,
UnPack responseUnpack) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String key,
Object value) |
Object |
getAttribute(String key) |
String[] |
getCompatibleParamSignatures()
duplicate filed as paramDesc, but with different format.
|
Method |
getMethod()
Only available for ReflectionMethod
|
String |
getMethodName() |
String |
getParamDesc() |
Class<?>[] |
getParameterClasses() |
Pack |
getRequestPack() |
UnPack |
getRequestUnpack() |
Pack |
getResponsePack() |
UnPack |
getResponseUnpack() |
Class<?> |
getReturnClass() |
Type[] |
getReturnTypes() |
MethodDescriptor.RpcType |
getRpcType() |
boolean |
isGeneric() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitneedWrapper, packRequest, packResponse, parseRequest, parseResponse, parseResponsepublic StubMethodDescriptor(String methodName, Class<?> requestClass, Class<?> responseClass, StubServiceDescriptor serviceDescriptor, MethodDescriptor.RpcType rpcType, Pack requestPack, Pack responsePack, UnPack requestUnpack, UnPack responseUnpack)
public String getMethodName()
getMethodName in interface MethodDescriptorpublic String getParamDesc()
getParamDesc in interface MethodDescriptorpublic String[] getCompatibleParamSignatures()
MethodDescriptorgetCompatibleParamSignatures in interface MethodDescriptorpublic Class<?>[] getParameterClasses()
getParameterClasses in interface MethodDescriptorpublic Class<?> getReturnClass()
getReturnClass in interface MethodDescriptorpublic Type[] getReturnTypes()
getReturnTypes in interface MethodDescriptorpublic MethodDescriptor.RpcType getRpcType()
getRpcType in interface MethodDescriptorpublic boolean isGeneric()
isGeneric in interface MethodDescriptorpublic Method getMethod()
MethodDescriptorgetMethod in interface MethodDescriptorpublic void addAttribute(String key, Object value)
addAttribute in interface MethodDescriptorpublic Object getAttribute(String key)
getAttribute in interface MethodDescriptorpublic Pack getRequestPack()
getRequestPack in interface PackableMethodpublic Pack getResponsePack()
getResponsePack in interface PackableMethodpublic UnPack getResponseUnpack()
getResponseUnpack in interface PackableMethodpublic UnPack getRequestUnpack()
getRequestUnpack in interface PackableMethodCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.