public interface CommonHandler
| 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) throws Throwable
methodName - 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 returnsThrowableObject asyncCall(String methodName, Object[] arguments, Class returnType) throws Throwable
methodName - arguments - returnType - ThrowableObject call(Request request, Class returnType) throws Throwable
request - returnType - ThrowableObject asyncCall(Request request, Class returnType) throws Throwable
request - returnType - ThrowableCopyright © 2020. All rights reserved.