Class WebXSessionValidator

java.lang.Object
java.lang.Thread
eu.ill.webx.relay.WebXSessionValidator
All Implemented Interfaces:
Runnable

public class WebXSessionValidator extends Thread
Separate thread to ping a session to ensure it is still running.
  • Method Details

    • isRunning

      public boolean isRunning()
      Returns true when running
      Returns:
      true when running
    • start

      public void start()
      Starts the session validator thread
      Overrides:
      start in class Thread
    • interrupt

      public void interrupt()
      Interrupts the session validator thread
      Overrides:
      interrupt in class 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.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread