public class ClientSession extends AbstractSession
Constructor and Description |
---|
ClientSession(java.lang.String sessionId,
java.lang.Object registerInfo) |
ClientSession(java.lang.String sessionId,
java.lang.Object registerInfo,
JsonRpcRequestSender jsonRpcRequestSender) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes() |
void |
sendNotification(java.lang.String method) |
void |
sendNotification(java.lang.String method,
java.lang.Object params) |
void |
sendNotification(java.lang.String method,
java.lang.Object params,
Continuation<JsonElement> continuation) |
Response<JsonElement> |
sendRequest(Request<JsonObject> request) |
void |
sendRequest(Request<JsonObject> request,
Continuation<Response<JsonElement>> continuation) |
JsonElement |
sendRequest(java.lang.String method) |
<R> R |
sendRequest(java.lang.String method,
java.lang.Class<R> resultClass) |
void |
sendRequest(java.lang.String method,
JsonObject params,
Continuation<JsonElement> continuation) |
JsonElement |
sendRequest(java.lang.String method,
java.lang.Object params) |
<R> R |
sendRequest(java.lang.String method,
java.lang.Object params,
java.lang.Class<R> resultClass) |
Response<JsonElement> |
sendRequestHonorId(Request<JsonObject> request) |
void |
sendRequestHonorId(Request<JsonObject> request,
Continuation<Response<JsonElement>> continuation) |
void |
setReconnectionTimeout(long millis) |
void |
setRequestSender(JsonRpcRequestSender requestSender) |
equals, getRegisterInfo, getSessionId, hashCode, isNew, setNew, setRegisterInfo, setSessionId
public ClientSession(java.lang.String sessionId, java.lang.Object registerInfo, JsonRpcRequestSender jsonRpcRequestSender)
public ClientSession(java.lang.String sessionId, java.lang.Object registerInfo)
public void setRequestSender(JsonRpcRequestSender requestSender)
public void close() throws java.io.IOException
java.io.IOException
public <R> R sendRequest(java.lang.String method, java.lang.Class<R> resultClass) throws java.io.IOException
java.io.IOException
public <R> R sendRequest(java.lang.String method, java.lang.Object params, java.lang.Class<R> resultClass) throws java.io.IOException
java.io.IOException
public JsonElement sendRequest(java.lang.String method) throws java.io.IOException
java.io.IOException
public JsonElement sendRequest(java.lang.String method, java.lang.Object params) throws java.io.IOException
java.io.IOException
public void sendNotification(java.lang.String method, java.lang.Object params) throws java.io.IOException
java.io.IOException
public void sendNotification(java.lang.String method) throws java.io.IOException
java.io.IOException
public void sendRequest(java.lang.String method, JsonObject params, Continuation<JsonElement> continuation)
public void sendNotification(java.lang.String method, java.lang.Object params, Continuation<JsonElement> continuation) throws java.io.IOException
java.io.IOException
public Response<JsonElement> sendRequest(Request<JsonObject> request) throws java.io.IOException
java.io.IOException
public void sendRequest(Request<JsonObject> request, Continuation<Response<JsonElement>> continuation) throws java.io.IOException
java.io.IOException
public void sendRequestHonorId(Request<JsonObject> request, Continuation<Response<JsonElement>> continuation) throws java.io.IOException
java.io.IOException
public Response<JsonElement> sendRequestHonorId(Request<JsonObject> request) throws java.io.IOException
java.io.IOException
public void setReconnectionTimeout(long millis)
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()