Class AbstractExecutorTaskRunnerFactory
java.lang.Object
com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory
- All Implemented Interfaces:
TaskRunnerFactory
- Direct Known Subclasses:
FixedThreadPoolExecutorTaskRunnerFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThis implementation includes uninformative stub implementations of -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mchange.v2.async.ThreadPoolReportingAsynchronousRunnercreateTaskRunner(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) protected abstract com.mchange.v2.async.ThreadPoolReportingAsynchronousRunnercreateTaskRunner(TaskRunnerInit init, Timer timer) booleanprotected abstract ExecutorinthashCode()protected HashMapprotected abstract booleanIf the task runner will "own" the Executor it finds/creates, then when the task runner is closed() so to will the Executor be.
-
Constructor Details
-
AbstractExecutorTaskRunnerFactory
public AbstractExecutorTaskRunnerFactory()
-
-
Method Details
-
findCreateExecutor
-
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
-
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:
createTaskRunnerin interfaceTaskRunnerFactory
-
equals
-
hashCode
-