@ThreadSafe public final class Sessions extends Object
Sessions
represents and manages all sessions contacting a worker.Modifier and Type | Field and Description |
---|---|
static int |
ACCESS_BLOCK_SESSION_ID |
static int |
ASYNC_CACHE_SESSION_ID |
static int |
CHECKPOINT_SESSION_ID |
static int |
DATASERVER_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 DATASERVER_SESSION_ID
public static final int CHECKPOINT_SESSION_ID
public static final int MIGRATE_DATA_SESSION_ID
public static final int MASTER_COMMAND_SESSION_ID
public static final int ACCESS_BLOCK_SESSION_ID
public static final int ASYNC_CACHE_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.