Class Watchdog

java.lang.Object
se.datadosen.jalbum.Watchdog

public class Watchdog extends Object
Ensure that the AWT thread isn't blocked for more than 20 seconds. In case it is, a thread dump file is generated
Since:
12.5
  • Constructor Details

    • Watchdog

      public Watchdog()
  • Method Details

    • getInstance

      public static Watchdog getInstance()
    • getCheckInterval

      public long getCheckInterval()
      Returns:
      Check interval in ms for ensuring that the AWT thread isn't blocked
    • setCheckInterval

      public void setCheckInterval(long checkInterval)
      Set how often to check that the AWT thread is not locked
      Parameters:
      checkInterval - Check interval in ms
    • run

      public void run()
    • stop

      public void stop()
    • isRunning

      public boolean isRunning()
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)