public interface SessionTracker
Modifier and Type | Interface and Description |
---|---|
static interface |
SessionTracker.Session |
static interface |
SessionTracker.SessionExpirer |
Modifier and Type | Method and Description |
---|---|
void |
addSession(long id,
int to) |
void |
checkSession(long sessionId,
Object owner) |
long |
createSession(int sessionTimeout) |
void |
dumpSessions(PrintWriter pwriter)
Text dump of session information, suitable for debugging.
|
void |
removeSession(long sessionId) |
void |
setOwner(long id,
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, Object owner) throws KeeperException.SessionExpiredException, KeeperException.SessionMovedException
void setOwner(long id, Object owner) throws KeeperException.SessionExpiredException
void dumpSessions(PrintWriter pwriter)
pwriter
- the output writerCopyright © 2013 The Apache Software Foundation