Class ProtectingTimerTask

java.lang.Object
java.util.TimerTask
org.fest.swing.monitor.ProtectingTimerTask
All Implemented Interfaces:
Runnable

class ProtectingTimerTask extends TimerTask
Prevents misbehaving TimerTasks from canceling the timer thread by throwing exceptions and/or errors.
  • Field Details

  • Constructor Details

    • ProtectingTimerTask

      ProtectingTimerTask(TimerTask task)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask
    • isCanceled

      private boolean isCanceled()
    • handleException

      private void handleException(Throwable thrown)