public abstract class RpcMethodInfo extends Object
ProtobufRpcProxy,
ProtobufRPC| 构造器和说明 |
|---|
RpcMethodInfo(Method method,
ProtobufRPC protobufPRC)
Instantiates a new rpc method info.
|
| 限定符和类型 | 方法和说明 |
|---|---|
AuthenticationDataHandler |
getAuthenticationDataHandler()
get the authenticationDataHandler
|
ClientAttachmentHandler |
getClientAttachmentHandler()
Gets the client attachment handler.
|
Class<? extends Object> |
getInputClass()
Gets the input class.
|
LogIDGenerator |
getLogIDGenerator()
Gets the log id generator.
|
Method |
getMethod()
Gets the method.
|
String |
getMethodName()
Gets the method name.
|
long |
getOnceTalkTimeout()
Gets the once talk timeout.
|
Class<? extends Object> |
getOutputClass()
Gets the output class.
|
ProtobufRPC |
getProtobufPRC()
Gets the protobuf prc.
|
String |
getServiceName()
Gets the service name.
|
abstract byte[] |
inputEncode(Object input)
Input encode.
|
static boolean |
isMessageType(Class inputClass2)
Checks if is message type.
|
static boolean |
isMessageType(Method method)
Checks if is message type.
|
abstract Object |
outputDecode(byte[] output)
Output decode.
|
void |
setMethodName(String methodName)
Sets the method name.
|
void |
setOnceTalkTimeout(long onceTalkTimeout)
Sets the once talk timeout.
|
void |
setServiceName(String serviceName)
Sets the service name.
|
public RpcMethodInfo(Method method, ProtobufRPC protobufPRC)
method - the methodprotobufPRC - the protobuf prcpublic abstract byte[] inputEncode(Object input) throws IOException
input - the inputIOException - Signals that an I/O exception has occurred.public abstract Object outputDecode(byte[] output) throws IOException
output - the outputIOException - Signals that an I/O exception has occurred.public static boolean isMessageType(Method method)
method - the methodpublic static boolean isMessageType(Class inputClass2)
inputClass2 - the input class 2public LogIDGenerator getLogIDGenerator()
public ClientAttachmentHandler getClientAttachmentHandler()
public Class<? extends Object> getInputClass()
public Class<? extends Object> getOutputClass()
public String getServiceName()
public void setServiceName(String serviceName)
serviceName - the new service namepublic String getMethodName()
public void setMethodName(String methodName)
methodName - the new method namepublic long getOnceTalkTimeout()
public void setOnceTalkTimeout(long onceTalkTimeout)
onceTalkTimeout - the new once talk timeoutpublic Method getMethod()
public ProtobufRPC getProtobufPRC()
public AuthenticationDataHandler getAuthenticationDataHandler()
Copyright © 2022 Baidu, Inc.. All rights reserved.