public class AuthThreadManager extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
AuthThreadManager()
Creates
AuthThreadManager object. |
Modifier and Type | Method and Description |
---|---|
boolean |
isLoginTimeout(long lastCallbackSent,
long timeout)
Checks login state for time out
|
boolean |
isTimedOut(Thread thread)
Checks if thread has timed out
|
void |
removeFromHash(Thread thread,
String hashName)
Removes thread from
Hashtable specified by hashName |
void |
run()
thread sleeps for n milliseconds as set in iplanet-am-auth-sleep-interval
wakes up and checks for each thread in the timeout Hash for timeout.
|
void |
setHash(Thread currentThread,
long pageTimeOut,
long lastCallbackSent)
Stores the thread as key and the time out value &
last callback sent in a Hashtable
|
activeCount, 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, toString, yield
public void run()
public boolean isLoginTimeout(long lastCallbackSent, long timeout)
lastCallbackSent
- time for last callback was sent.timeout
- configured timeout value.true
if the thread is timed out.public void setHash(Thread currentThread, long pageTimeOut, long lastCallbackSent)
currentThread
- will be storedpageTimeOut
- configured timeout valuelastCallbackSent
- time for last callback was sentpublic boolean isTimedOut(Thread thread)
thread
- will be checkedtrue
if the is timed outCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.