Class GuardedRunnable

  • public class GuardedRunnable
    extends java.lang.Object
    Meant to be used together with {#link @ScheduledExecutedService.scheduleAtFixedRate}. When scheduleAtFixedRate is used, and the Runnable fails, the subsequent executions are suspended. Using this class helps to guard the execution and keeps the scheduleAtFixedRate working.
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Runnable guard​(java.lang.Runnable runnable)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GuardedRunnable

        public GuardedRunnable()
    • Method Detail

      • guard

        public static java.lang.Runnable guard​(java.lang.Runnable runnable)