public class LocalSessionTracker extends SessionTrackerImpl
SessionTrackerImpl.SessionImpl
Thread.State, Thread.UncaughtExceptionHandler
SessionTracker.Session, SessionTracker.SessionExpirer
sessionsById, sessionsWithTimeout
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
LocalSessionTracker(SessionTracker.SessionExpirer expirer,
ConcurrentMap<Long,Integer> sessionsWithTimeouts,
int tickTime,
long id,
ZooKeeperServerListener listener) |
Modifier and Type | Method and Description |
---|---|
long |
createSession(int sessionTimeout) |
boolean |
isGlobalSession(long sessionId) |
boolean |
isLocalSession(long sessionId) |
Set<Long> |
localSessions()
Get a set of local session IDs
|
checkGlobalSession, checkSession, commitSession, dumpSessions, getLocalSessionCount, getSessionExpiryMap, getSessionTimeout, globalSessions, initializeNextSessionId, isLocalSessionsEnabled, isTrackingSession, removeSession, run, setOwner, setSessionClosing, shutdown, toString, touchSession, trackSession
handleException
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
public LocalSessionTracker(SessionTracker.SessionExpirer expirer, ConcurrentMap<Long,Integer> sessionsWithTimeouts, int tickTime, long id, ZooKeeperServerListener listener)
public boolean isLocalSession(long sessionId)
public boolean isGlobalSession(long sessionId)
public long createSession(int sessionTimeout)
createSession
in interface SessionTracker
createSession
in class SessionTrackerImpl
public Set<Long> localSessions()
SessionTracker
localSessions
in interface SessionTracker
localSessions
in class SessionTrackerImpl
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.