public interface Remote
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Future<T> |
asyncInvoke(String serviceName,
String methodName,
Object[] args,
Class<T> returnType)
异步调用远程的方法。
|
void |
invoke(String serviceName,
String methodName,
Object[] args)
同步调用远程的方法。
|
<T> T |
invoke(String serviceName,
String methodName,
Object[] args,
Class<T> returnType,
int timeout)
同步调用远端方法,并返回指定类型的调用结果。
|
void invoke(String serviceName, String methodName, Object[] args) throws IOException, WsonrpcException
serviceName - methodName - args - IOExceptionWsonrpcException<T> T invoke(String serviceName, String methodName, Object[] args, Class<T> returnType, int timeout) throws IOException, WsonrpcException
serviceName - methodName - args - returnType - timeout - 超时时间,0表示永不超时。单位为TimeUnit.MILLISECONDSIOExceptionWsonrpcException<T> Future<T> asyncInvoke(String serviceName, String methodName, Object[] args, Class<T> returnType) throws IOException, WsonrpcException
serviceName - methodName - args - returnType - IOExceptionWsonrpcExceptionCopyright © 2016. All rights reserved.