public interface CommonHandler
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
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 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 - ThrowableRequest buildRequest(String methodName, Object[] arguments)
methodName - arguments - Copyright © 2021. All rights reserved.