Class ThreadPoolTask

java.lang.Object
com.biglybt.core.util.AERunnable
com.biglybt.core.util.ThreadPoolTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ClientIDManagerImpl.httpFilter, DHTControlImpl.DhtTask, TimerEvent, TRTrackerServerProcessor

public abstract class ThreadPoolTask extends AERunnable
  • Field Details

  • Constructor Details

    • ThreadPoolTask

      public ThreadPoolTask()
  • Method Details

    • setTaskState

      public void setTaskState(String state)
    • getTaskState

      public String getTaskState()
    • interruptTask

      public abstract void interruptTask()
    • taskStarted

      public void taskStarted()
    • taskCompleted

      public void taskCompleted()
    • join

      final void join()
      only invoke this method after the first run of the threadpooltask as it is only meant to join on a task when it has child tasks and thus is running in manual release mode
    • setManualRelease

      final void setManualRelease()
    • canManualRelease

      final boolean canManualRelease()
    • isAutoReleaseAndAllowManual

      final boolean isAutoReleaseAndAllowManual()
      only invoke this method after the first run of the threadpooltask as it is only meant to update the state of a task when it has child tasks and thus is running in manual release mode
    • releaseToPool

      public final void releaseToPool()