Class WorkManager

java.lang.Object
com.zfabrik.work.WorkManager

public abstract class WorkManager extends Object
The work manager manages the system's concurrency.
Author:
hb
  • Field Details

  • Constructor Details

    • WorkManager

      public WorkManager()
  • Method Details

    • get

      public static WorkManager get()
    • query

      public static WorkManager query()
    • createThreadPool

      public abstract IThreadPool createThreadPool(String id)
      provide a logical thread pool by id. Will throw an exception if a thread pool by the same id has been created previously but released.
      Parameters:
      id -
    • releaseThreadPool

      public abstract void releaseThreadPool(String id)
      releases a named threadpool. Will throw an exception if the named threadpool does not exist or is still busy