@ThreadSafe public final class Sessions extends Object
Sessions
represents and manages all sessions contacting a worker.Modifier and Type | Field and Description |
---|---|
static int |
ASYNC_CACHE_UFS_SESSION_ID |
static int |
ASYNC_CACHE_WORKER_SESSION_ID |
static long |
INTERNAL_SESSION_ID_BASE |
static int |
MASTER_COMMAND_SESSION_ID |
static int |
MIGRATE_DATA_SESSION_ID |
Constructor and Description |
---|
Sessions()
Creates a new instance of
Sessions . |
Modifier and Type | Method and Description |
---|---|
static long |
createInternalSessionId() |
List<Long> |
getTimedOutSessions()
Gets the sessions that timed out.
|
void |
removeSession(long sessionId)
Removes the given session from the session pool.
|
void |
sessionHeartbeat(long sessionId)
Performs session heartbeat.
|
public static final int MIGRATE_DATA_SESSION_ID
public static final int MASTER_COMMAND_SESSION_ID
public static final int ASYNC_CACHE_WORKER_SESSION_ID
public static final int ASYNC_CACHE_UFS_SESSION_ID
public static final long INTERNAL_SESSION_ID_BASE
public Sessions()
Sessions
.public List<Long> getTimedOutSessions()
public void removeSession(long sessionId)
sessionId
- the id of the session to be removedpublic void sessionHeartbeat(long sessionId)
sessionId
- the id of the sessionpublic static long createInternalSessionId()
Copyright © 2023. All Rights Reserved.