public class LocalSessionTracker extends SessionTrackerImpl
SessionTrackerImpl.SessionImplThread.State, Thread.UncaughtExceptionHandlerSessionTracker.Session, SessionTracker.SessionExpirersessionsByIdMAX_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, touchSessionhandleExceptionactiveCount, 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, yieldpublic 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)
SessionTrackeraddGlobalSession in interface SessionTrackeraddGlobalSession in class SessionTrackerImplsessionId - sessionIdsessionTimeout - sessionTimeoutCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.