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, setSessionIdpublic 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.IOExceptionpublic <R> R sendRequest(java.lang.String method,
java.lang.Class<R> resultClass)
throws java.io.IOException
java.io.IOExceptionpublic <R> R sendRequest(java.lang.String method,
java.lang.Object params,
java.lang.Class<R> resultClass)
throws java.io.IOException
java.io.IOExceptionpublic JsonElement sendRequest(java.lang.String method)
throws java.io.IOException
java.io.IOExceptionpublic JsonElement sendRequest(java.lang.String method,
java.lang.Object params)
throws java.io.IOException
java.io.IOExceptionpublic void sendNotification(java.lang.String method,
java.lang.Object params)
throws java.io.IOException
java.io.IOExceptionpublic void sendNotification(java.lang.String method)
throws java.io.IOException
java.io.IOExceptionpublic 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.IOExceptionpublic Response<JsonElement> sendRequest(Request<JsonObject> request) throws java.io.IOException
java.io.IOExceptionpublic void sendRequest(Request<JsonObject> request, Continuation<Response<JsonElement>> continuation) throws java.io.IOException
java.io.IOExceptionpublic void sendRequestHonorId(Request<JsonObject> request, Continuation<Response<JsonElement>> continuation) throws java.io.IOException
java.io.IOExceptionpublic Response<JsonElement> sendRequestHonorId(Request<JsonObject> request) throws java.io.IOException
java.io.IOExceptionpublic void setReconnectionTimeout(long millis)
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()