public class LocalSessionTracker extends SessionTrackerImpl
SessionTrackerImpl.SessionImpl
Thread.State, Thread.UncaughtExceptionHandler
SessionTracker.Session, SessionTracker.SessionExpirer
sessionsById
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 |
---|---|
boolean |
addGlobalSession(long sessionId,
int sessionTimeout)
Add a global session to those being tracked.
|
boolean |
isGlobalSession(long sessionId) |
boolean |
isLocalSession(long sessionId) |
addSession, checkGlobalSession, checkSession, createSession, dumpSessions, getSessionExpiryMap, getSessionTimeout, initializeNextSession, isTrackingSession, removeSession, run, setOwner, setSessionClosing, shutdown, toString, touchSession
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 boolean addGlobalSession(long sessionId, int sessionTimeout)
SessionTracker
addGlobalSession
in interface SessionTracker
addGlobalSession
in class SessionTrackerImpl
sessionId
- sessionIdsessionTimeout
- sessionTimeoutCopyright © 2008–2019 The Apache Software Foundation. All rights reserved.