Class UtilitiesImpl.DelayedTaskImpl

java.lang.Object
com.biglybt.pifimpl.local.utils.UtilitiesImpl.DelayedTaskImpl
All Implemented Interfaces:
DelayedTask
Enclosing class:
UtilitiesImpl

static class UtilitiesImpl.DelayedTaskImpl extends Object implements DelayedTask
  • Field Details

    • name

      private String name
    • target

      private Runnable target
    • create_time

      private long create_time
    • run_time

      private long run_time
  • Constructor Details

    • DelayedTaskImpl

      private DelayedTaskImpl(String _name)
  • Method Details

    • setTask

      public void setTask(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
    • queueFirst

      public void queueFirst()
      Specified by:
      queueFirst in interface DelayedTask
    • run

      protected void run()
    • getName

      protected String getName()