@ThreadSafe public class Sessions extends Object
Sessions
represents and manages all sessions contacting a worker.Modifier and Type | Field and Description |
---|---|
static int |
CACHE_UFS_SESSION_ID |
static int |
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.
|
public static final int MIGRATE_DATA_SESSION_ID
public static final int MASTER_COMMAND_SESSION_ID
public static final int CACHE_WORKER_SESSION_ID
public static final int 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 static long createInternalSessionId()
Copyright © 2023. All Rights Reserved.