Package eu.ill.webx.relay
Class WebXSessionValidator
java.lang.Object
java.lang.Thread
eu.ill.webx.relay.WebXSessionValidator
- All Implemented Interfaces:
Runnable
Separate thread to ping a session to ensure it is still running.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, startVirtualThread, stop, suspend, threadId, toString, yield
-
Method Details
-
isRunning
public boolean isRunning()Returns true when running- Returns:
- true when running
-
start
public void start()Starts the session validator thread -
interrupt
public void interrupt()Interrupts the session validator thread -
run
public void run()Main method called when the Thread executes. The thread will send a ping request to the WebX Engine and wait for a response. If no response is received before the timeout value then the error callback is called. the ping is sent to the WebX Engine every 15 seconds.
-