Class WorkerThread

java.lang.Object
java.lang.Thread
org.exoplatform.commons.file.resource.WorkerThread
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
FileCleaner

public abstract class WorkerThread extends Thread
Created by The eXo Platform SAS.
  • Field Details

    • stopped

      protected boolean stopped
    • timeout

      protected long timeout
  • Constructor Details

    • WorkerThread

      public WorkerThread(String name, long timeout)
    • WorkerThread

      public WorkerThread(long timeout)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • halt

      public void halt()
    • callPeriodically

      protected abstract void callPeriodically() throws Exception
      Throws:
      Exception