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, setSessionId
public JsonRpcClientLocal(JsonRpcHandler<? extends java.lang.Object> handler)
public void close() throws java.io.IOException
JsonRpcClient
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class JsonRpcClient
java.io.IOException
- if an I/O error occurs when closing this client.JsonRpcClient.isClosed()
public void setServerRequestHandler(JsonRpcHandler<?> handler)
setServerRequestHandler
in class JsonRpcClient
public void connect() throws java.io.IOException
connect
in class JsonRpcClient
java.io.IOException
public void setRequestTimeout(long requesTimeout)
setRequestTimeout
in class JsonRpcClient