Class SyncTaskWorker<T>

java.lang.Object
com.luna.common.worker.SyncTaskWorker<T>
All Implemented Interfaces:
Runnable

public abstract class SyncTaskWorker<T> extends Object implements Runnable
任务worker
Version:
1.0
  • Field Details

  • Constructor Details

  • Method Details

    • init

      public abstract void init()
      initialize the task queue size
    • getTaskList

      public abstract List<T> getTaskList()
    • handleTask

      public abstract void handleTask(T task)
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getTask

      public void getTask()