Class AbstractExecutorTaskRunnerFactory

java.lang.Object
com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory
All Implemented Interfaces:
TaskRunnerFactory
Direct Known Subclasses:
FixedThreadPoolExecutorTaskRunnerFactory

public abstract class AbstractExecutorTaskRunnerFactory extends Object implements TaskRunnerFactory
  • Constructor Details

    • AbstractExecutorTaskRunnerFactory

      public AbstractExecutorTaskRunnerFactory()
  • Method Details

    • findCreateExecutor

      protected abstract Executor findCreateExecutor(TaskRunnerInit init)
    • taskRunnerOwnsExecutor

      protected abstract boolean taskRunnerOwnsExecutor()
      If the task runner will "own" the Executor it finds/creates, then when the task runner is closed() so to will the Executor be.
    • createTaskRunner

      protected abstract com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner createTaskRunner(TaskRunnerInit init, Timer timer)
    • otherPropertiesFromConnectionPoolDataSource

      protected HashMap otherPropertiesFromConnectionPoolDataSource(ConnectionPoolDataSource cpds)
    • createTaskRunner

      public com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner createTaskRunner(int num_threads_if_supported, int max_administrative_task_time_if_supported, String contextClassLoaderSourceIfSupported, boolean privilege_spawned_threads_if_supported, String threadLabelIfSupported, ConnectionPoolDataSource cpds, Timer timer)
      Specified by:
      createTaskRunner in interface TaskRunnerFactory
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object