Class WorkPool

java.lang.Object
org.localify.common.WorkPool

public final class WorkPool extends Object
A thread pool for executing background tasks.
  • Method Details

    • execute

      public void execute(Runnable runnable)
      Executes a task in the thread pool.
      Parameters:
      runnable - The task to execute.
    • getPool

      public static WorkPool getPool()
      Gets the singleton instance of the work pool.
      Returns:
      The work pool.