Class UtilitiesImpl.DelayedTaskImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long create_time  
      private java.lang.String name  
      private long run_time  
      private java.lang.Runnable target  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DelayedTaskImpl​(java.lang.String _name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getName()  
      void queue()
      Queue the task for execution.
      void queueFirst()  
      protected void run()  
      void setTask​(java.lang.Runnable _target)  
      • Methods inherited from class java.lang.Object

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

      • name

        private java.lang.String name
      • target

        private java.lang.Runnable target
      • create_time

        private long create_time
      • run_time

        private long run_time
    • Constructor Detail

      • DelayedTaskImpl

        private DelayedTaskImpl​(java.lang.String _name)
    • Method Detail

      • setTask

        public void setTask​(java.lang.Runnable _target)
      • queue

        public void queue()
        Description copied from interface: DelayedTask
        Queue the task for execution. The task MUST have been set prior to this. If successful this will result in the runnable target being invoked when all prior delayed tasks have completed
        Specified by:
        queue in interface DelayedTask
      • run

        protected void run()
      • getName

        protected java.lang.String getName()