public class JsonRpcClientLocal extends JsonRpcClient
connectionTimeout, handlerManager, heartbeating, heartbeatInterval, idleTimeout, label, registerInfo, rsHelper, session| Constructor and Description |
|---|
JsonRpcClientLocal(JsonRpcHandler<? extends java.lang.Object> handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this client.
|
void |
connect() |
void |
setRequestTimeout(long requesTimeout) |
void |
setServerRequestHandler(JsonRpcHandler<?> handler) |
closeWithReconnection, disableHeartbeat, disableHeartbeat, enableHeartbeat, enableHeartbeat, getConnectionTimeoutValue, getHeartbeatInterval, getIdleTimeout, getSession, isClosed, sendNotification, sendNotification, sendNotification, sendRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequestHonorId, sendRequestHonorId, setConnectionTimeoutValue, setHeartbeatInterval, setIdleTimeout, setLabel, setSessionIdpublic JsonRpcClientLocal(JsonRpcHandler<? extends java.lang.Object> handler)
public void close()
throws java.io.IOException
JsonRpcClientclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class JsonRpcClientjava.io.IOException - if an I/O error occurs when closing this client.JsonRpcClient.isClosed()public void setServerRequestHandler(JsonRpcHandler<?> handler)
setServerRequestHandler in class JsonRpcClientpublic void connect()
throws java.io.IOException
connect in class JsonRpcClientjava.io.IOExceptionpublic void setRequestTimeout(long requesTimeout)
setRequestTimeout in class JsonRpcClient