use of com.hazelcast.cp.internal.session.SessionResponse in project hazelcast by hazelcast.
the class ClientProxySessionManager method requestNewSession.
@Override
protected SessionResponse requestNewSession(RaftGroupId groupId) {
ClientMessage request = CPSessionCreateSessionCodec.encodeRequest(groupId, client.getName());
ClientMessage response = new ClientInvocation(client, request, "sessionManager").invoke().joinInternal();
CPSessionCreateSessionCodec.ResponseParameters params = CPSessionCreateSessionCodec.decodeResponse(response);
return new SessionResponse(params.sessionId, params.ttlMillis, params.heartbeatMillis);
}
Aggregations