Class CloudTimerTask

  • All Implemented Interfaces:
    java.lang.Runnable

    public abstract class CloudTimerTask
    extends java.lang.Object
    implements java.lang.Runnable
    Author:
    javaito
    • Constructor Summary

      Constructors 
      Constructor Description
      CloudTimerTask​(java.lang.String name)  
    • Method Summary

      Modifier and Type Method Description
      protected abstract java.lang.Long getDelay()
      Return the delay value to each cycle of the task.
      protected void onError​(java.lang.Throwable throwable)
      Implements this method in order to process the error.
      protected abstract void onRun()
      Custom logic implementation.
      void run()
      Implementation of the life cycle of the distributed timer task.
      • Methods inherited from class java.lang.Object

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

      • CloudTimerTask

        public CloudTimerTask​(java.lang.String name)
    • Method Detail

      • run

        public final void run()
        Implementation of the life cycle of the distributed timer task.
        Specified by:
        run in interface java.lang.Runnable
      • getDelay

        protected abstract java.lang.Long getDelay()
        Return the delay value to each cycle of the task.
        Returns:
        Delay value.
      • onRun

        protected abstract void onRun()
        Custom logic implementation.
      • onError

        protected void onError​(java.lang.Throwable throwable)
        Implements this method in order to process the error.
        Parameters:
        throwable - Throwable instance.