public class RefererCommonHandler<T> extends AbstractRefererHandler<T> implements CommonHandler
clusters, clz, interfaceName, switcherService| 构造器和说明 |
|---|
RefererCommonHandler(String interfaceName,
List<Cluster<T>> clusters) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
asyncCall(Request request,
Class<?> returnType)
call a service with request asynchronously
|
Object |
asyncCall(String methodName,
Object[] arguments,
Class<?> returnType)
call a service method asynchronously
|
Request |
buildRequest(String methodName,
Object[] arguments)
build request with methodName and arguments
|
Request |
buildRequest(String interfaceName,
String methodName,
Object[] arguments)
build request with interfaceName, methodName and arguments
|
Object |
call(Request request,
Class<?> returnType)
call a service method with request
|
Object |
call(String methodName,
Object[] arguments,
Class<?> returnType)
call a service method
|
call, fillDefaultRequest, fillWithContext, getDefaultReturnValue, getRealReturnType, isLocalMethodpublic Object call(String methodName, Object[] arguments, Class<?> returnType) throws Throwable
CommonClientcall 在接口中 CommonClientmethodName - the method name of remote servicearguments - an array of objects containing the values of the arguments passed in the method invocationreturnType - the class type that the method returnsThrowable - exceptionpublic Object asyncCall(String methodName, Object[] arguments, Class<?> returnType) throws Throwable
CommonClientasyncCall 在接口中 CommonClientThrowablepublic Object call(Request request, Class<?> returnType) throws Throwable
CommonClientcall 在接口中 CommonClientThrowablepublic Object asyncCall(Request request, Class<?> returnType) throws Throwable
CommonClientasyncCall 在接口中 CommonClientThrowablepublic Request buildRequest(String methodName, Object[] arguments)
CommonClientbuildRequest 在接口中 CommonClientpublic Request buildRequest(String interfaceName, String methodName, Object[] arguments)
CommonClientbuildRequest 在接口中 CommonClientCopyright © 2023. All rights reserved.