public class ClientProxySessionManager extends AbstractProxySessionManager
NO_SESSION_ID| Constructor and Description |
|---|
ClientProxySessionManager(HazelcastClientInstanceImpl client) |
| Modifier and Type | Method and Description |
|---|---|
protected ICompletableFuture<Object> |
closeSession(RaftGroupId groupId,
Long sessionId)
Closes the given session on the Raft group
|
protected long |
generateThreadId(RaftGroupId groupId)
Generates a cluster-wide unique thread id for the caller
|
protected ICompletableFuture<Object> |
heartbeat(RaftGroupId groupId,
long sessionId)
Commits a heartbeat for the session on the Raft group
|
protected SessionResponse |
requestNewSession(RaftGroupId groupId)
Creates a new session on the Raft group
|
protected ScheduledFuture<?> |
scheduleWithRepetition(Runnable task,
long period,
TimeUnit unit)
Schedules the given task for repeating execution
|
Map<RaftGroupId,ICompletableFuture<Object>> |
shutdown()
Invokes a shutdown call on server to close all existing sessions.
|
acquireSession, acquireSession, getOrCreateUniqueThreadId, getSession, getSessionAcquireCount, invalidateSession, releaseSession, releaseSession, resetInternalStatepublic ClientProxySessionManager(HazelcastClientInstanceImpl client)
protected long generateThreadId(RaftGroupId groupId)
AbstractProxySessionManagergenerateThreadId in class AbstractProxySessionManagerprotected SessionResponse requestNewSession(RaftGroupId groupId)
AbstractProxySessionManagerrequestNewSession in class AbstractProxySessionManagerprotected ScheduledFuture<?> scheduleWithRepetition(Runnable task, long period, TimeUnit unit)
AbstractProxySessionManagerscheduleWithRepetition in class AbstractProxySessionManagerprotected ICompletableFuture<Object> heartbeat(RaftGroupId groupId, long sessionId)
AbstractProxySessionManagerheartbeat in class AbstractProxySessionManagerprotected ICompletableFuture<Object> closeSession(RaftGroupId groupId, Long sessionId)
AbstractProxySessionManagercloseSession in class AbstractProxySessionManagerpublic Map<RaftGroupId,ICompletableFuture<Object>> shutdown()
AbstractProxySessionManagershutdown in class AbstractProxySessionManagerCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.