| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<String,String> |
headers |
protected JsonRpcControl |
jsonRpcControl |
protected Random |
rand |
protected URL |
url |
| 构造器和说明 |
|---|
HttpJsonRpcRemote(URL url,
JsonImplementor jsonImpl) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Future<T> |
asyncInvoke(String handleName,
String methodName,
Object[] args,
Class<T> returnType) |
int |
getConnectTimeout() |
void |
invoke(String handlerName,
String methodName,
Object[] args) |
<T> T |
invoke(String handlerName,
String methodName,
Object[] args,
Class<T> returnType,
int timeout) |
boolean |
isAcceptCompress() |
void |
setAcceptCompress(boolean value) |
void |
setConnectTimeout(int timeout) |
protected void |
setHeader(String key,
String value) |
protected final URL url
protected final JsonRpcControl jsonRpcControl
protected final Random rand
public HttpJsonRpcRemote(URL url, JsonImplementor jsonImpl)
url - jsonImpl - public final void setConnectTimeout(int timeout)
public int getConnectTimeout()
public boolean isAcceptCompress()
public void setAcceptCompress(boolean value)
public void invoke(String handlerName, String methodName, Object[] args) throws IOException, WsonrpcException
invoke 在接口中 RemoteIOExceptionWsonrpcExceptionpublic <T> T invoke(String handlerName, String methodName, Object[] args, Class<T> returnType, int timeout) throws IOException, WsonrpcException, RemoteException
invoke 在接口中 RemoteIOExceptionWsonrpcExceptionRemoteExceptionpublic <T> Future<T> asyncInvoke(String handleName, String methodName, Object[] args, Class<T> returnType) throws IOException, WsonrpcException
asyncInvoke 在接口中 RemoteIOExceptionWsonrpcExceptionCopyright © 2017. All rights reserved.