|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread proai.service.SnapshotSession<T>
public class SnapshotSession<T>
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SnapshotSession(SessionManager manager,
java.io.File baseDir,
int secondsBetweenRequests,
ListProvider<T> provider)
|
Method Summary | |
---|---|
void |
clean()
Do all possible cleanup for this session. |
void |
finalize()
|
ResponseData |
getResponseData(int partNum)
Get the named response, wait for it, or throw any exception that has popped up while generating parts. |
boolean |
hasExpired()
Has the session expired? If this is true, the session will be cleaned by the reaper thread of the session manager. |
void |
run()
|
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 |
Constructor Detail |
---|
public SnapshotSession(SessionManager manager, java.io.File baseDir, int secondsBetweenRequests, ListProvider<T> provider)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public boolean hasExpired()
hasExpired
in interface Session
public void clean()
clean
in interface Session
public ResponseData getResponseData(int partNum) throws ServerException, BadResumptionTokenException
getResponseData
in interface Session
ServerException
BadResumptionTokenException
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 |