LearnerSessionTracker
, SessionTrackerImpl
public interface SessionTracker
Modifier and Type | Interface | Description |
---|---|---|
static interface |
SessionTracker.Session |
|
static interface |
SessionTracker.SessionExpirer |
Modifier and Type | Method | Description |
---|---|---|
void |
addSession(long id,
int to) |
|
void |
checkSession(long sessionId,
java.lang.Object owner) |
|
long |
createSession(int sessionTimeout) |
|
void |
dumpSessions(java.io.PrintWriter pwriter) |
Text dump of session information, suitable for debugging.
|
void |
removeSession(long sessionId) |
|
void |
setOwner(long id,
java.lang.Object owner) |
|
void |
setSessionClosing(long sessionId) |
Mark that the session is in the process of closing.
|
void |
shutdown() |
|
boolean |
touchSession(long sessionId,
int sessionTimeout) |
long createSession(int sessionTimeout)
void addSession(long id, int to)
boolean touchSession(long sessionId, int sessionTimeout)
sessionId
- sessionTimeout
- void setSessionClosing(long sessionId)
sessionId
- void shutdown()
void removeSession(long sessionId)
sessionId
- void checkSession(long sessionId, java.lang.Object owner) throws KeeperException.SessionExpiredException, KeeperException.SessionMovedException
void setOwner(long id, java.lang.Object owner) throws KeeperException.SessionExpiredException
void dumpSessions(java.io.PrintWriter pwriter)
pwriter
- the output writerCopyright © 2018 The Apache Software Foundation