public interface CommonClient
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
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 returnsThrowable - exceptionObject asyncCall(String methodName, Object[] arguments, Class<?> returnType) throws Throwable
ThrowableObject call(Request request, Class<?> returnType) throws Throwable
ThrowableObject asyncCall(Request request, Class<?> returnType) throws Throwable
ThrowableRequest buildRequest(String methodName, Object[] arguments)
Copyright © 2023. All rights reserved.