public class RefererCommonHandler<T> extends AbstractRefererHandler<T> implements CommonHandler
clusters, clz, interfaceName, switcherService| Constructor and Description |
|---|
RefererCommonHandler(String interfaceName,
List<Cluster<T>> clusters) |
| Modifier and Type | Method and Description |
|---|---|
Object |
asyncCall(Request request,
Class returnType)
async call a service with request
|
Object |
asyncCall(String methodName,
Object[] arguments,
Class returnType)
async call a service with general handler
|
Request |
buildRequest(String methodName,
Object[] arguments)
build request with 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 with general handler
|
Object |
call(String methodName,
Object[] arguments,
Class returnType,
Map<String,String> attachments,
boolean async) |
public Object call(String methodName, Object[] arguments, Class returnType, Map<String,String> attachments, boolean async) throws Throwable
Throwablepublic Object call(String methodName, Object[] arguments, Class returnType) throws Throwable
CommonHandlercall in interface CommonHandlermethodName - 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 returnsThrowablepublic Object asyncCall(String methodName, Object[] arguments, Class returnType) throws Throwable
CommonHandlerasyncCall in interface CommonHandlerThrowablepublic Object call(Request request, Class returnType) throws Throwable
CommonHandlercall in interface CommonHandlerThrowablepublic Object asyncCall(Request request, Class returnType) throws Throwable
CommonHandlerasyncCall in interface CommonHandlerThrowablepublic Request buildRequest(String methodName, Object[] arguments)
CommonHandlerbuildRequest in interface CommonHandlerCopyright © 2019. All rights reserved.