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 |
---|---|
long |
createSession(int sessionTimeout) |
boolean |
isGlobalSession(long sessionId) |
boolean |
isLocalSession(long sessionId) |
checkGlobalSession, checkSession, commitSession, dumpSessions, getLocalSessionCount, getSessionExpiryMap, getSessionTimeout, 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
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.