Package se.datadosen.jalbum
Class Watchdog
java.lang.Object
se.datadosen.jalbum.Watchdog
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
static Watchdog
boolean
boolean
void
run()
void
setCheckInterval
(long checkInterval) Set how often to check that the AWT thread is not lockedvoid
setEnabled
(boolean enabled) void
stop()
-
Constructor Details
-
Watchdog
public Watchdog()
-
-
Method Details
-
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)
-