Class KSBThreadPoolImpl

All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService, org.kuali.rice.core.api.lifecycle.Lifecycle, KSBThreadPool

public class KSBThreadPoolImpl extends ThreadPoolExecutor implements KSBThreadPool
A Thread Pool implementation for the KSB which implements a thread pool backed by a configuration store.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Field Details

  • Constructor Details

    • KSBThreadPoolImpl

      public KSBThreadPoolImpl()
  • Method Details

    • setCorePoolSize

      public void setCorePoolSize(int corePoolSize)
      Specified by:
      setCorePoolSize in interface KSBThreadPool
      Overrides:
      setCorePoolSize in class ThreadPoolExecutor
    • getKeepAliveTime

      public long getKeepAliveTime()
      Specified by:
      getKeepAliveTime in interface KSBThreadPool
    • isStarted

      public boolean isStarted()
      Specified by:
      isStarted in interface org.kuali.rice.core.api.lifecycle.Lifecycle
    • start

      public void start() throws Exception
      Specified by:
      start in interface org.kuali.rice.core.api.lifecycle.Lifecycle
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Specified by:
      stop in interface org.kuali.rice.core.api.lifecycle.Lifecycle
      Throws:
      Exception
    • loadSettings

      protected void loadSettings()
      Loads the thread pool settings from the DAO.
    • getInstance

      public Object getInstance()
      Specified by:
      getInstance in interface KSBThreadPool