|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread proai.service.SessionManager
public class SessionManager
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static java.lang.String |
ERR_RESUMPTION_SESSION
|
static java.lang.String |
ERR_RESUMPTION_SYNTAX_INTEGER
|
static java.lang.String |
ERR_RESUMPTION_SYNTAX_SLASH
|
static java.lang.String |
PROP_BASEDIR
|
static java.lang.String |
PROP_SECONDSBETWEENREQUESTS
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SessionManager(java.io.File baseDir,
int secondsBetweenRequests)
|
|
SessionManager(java.util.Properties props)
|
Method Summary | ||
---|---|---|
protected void |
addSession(java.lang.String key,
Session session)
Add a session to the map of tracked sessions. |
|
void |
close()
|
|
void |
finalize()
|
|
ResponseData |
getResponseData(java.lang.String resumptionToken)
Get response data from the appropriate session and return it. |
|
|
list(ListProvider<T> provider)
|
|
void |
run()
Session timeout reaper thread. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, 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, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_BASEDIR
public static final java.lang.String PROP_SECONDSBETWEENREQUESTS
public static final java.lang.String ERR_RESUMPTION_SYNTAX_SLASH
public static final java.lang.String ERR_RESUMPTION_SYNTAX_INTEGER
public static final java.lang.String ERR_RESUMPTION_SESSION
Constructor Detail |
---|
public SessionManager(java.util.Properties props) throws ServerException
ServerException
public SessionManager(java.io.File baseDir, int secondsBetweenRequests)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected void addSession(java.lang.String key, Session session)
public <T> ResponseData list(ListProvider<T> provider) throws ServerException
ServerException
public ResponseData getResponseData(java.lang.String resumptionToken) throws BadResumptionTokenException, ServerException
BadResumptionTokenException
ServerException
public void close()
public void finalize()
finalize
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |