Class ClientWatchDog
java.lang.Object
java.lang.Thread
net.sf.colossus.webserver.ClientWatchDog
- All Implemented Interfaces:
Runnable
Sends ping requests to clients to check whether they are still alive
and connected.
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate booleanprivate static final Loggerprivate final UserDBFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
LOGGER
-
done
private boolean done -
userDB
-
CHECK_INTERVAL_SECONDS
private static final long CHECK_INTERVAL_SECONDS- See Also:
-
-
Constructor Details
-
ClientWatchDog
-
-
Method Details
-
run
-
sleepFor
public void sleepFor(long millis) -
shutdown
public void shutdown()
-