Class FixedThreadPoolExecutorTaskRunnerFactory
java.lang.Object
com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory
com.mchange.v2.c3p0.FixedThreadPoolExecutorTaskRunnerFactory
- All Implemented Interfaces:
TaskRunnerFactory
public final class FixedThreadPoolExecutorTaskRunnerFactory
extends AbstractExecutorTaskRunnerFactory
This implementation supports all relevant config, including
numHelperThreads, maxAdministrativeTaskTime,
contextClassLoaderSource, and privilegeSpawnedThreads.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected final classNested classes/interfaces inherited from class AbstractExecutorTaskRunnerFactory
AbstractExecutorTaskRunnerFactory.AbstractExecutorAsynchronousRunner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mchange.v2.async.ThreadPoolReportingAsynchronousRunnercreateTaskRunner(TaskRunnerInit init, Timer timer) protected Executorprotected booleanIf the task runner will "own" the Executor it finds/creates, then when the task runner is closed() so to will the Executor be.Methods inherited from class AbstractExecutorTaskRunnerFactory
createTaskRunner, equals, hashCode, otherPropertiesFromConnectionPoolDataSource
-
Constructor Details
-
FixedThreadPoolExecutorTaskRunnerFactory
public FixedThreadPoolExecutorTaskRunnerFactory()
-
-
Method Details
-
findCreateExecutor
- Specified by:
findCreateExecutorin classAbstractExecutorTaskRunnerFactory
-
taskRunnerOwnsExecutor
protected boolean taskRunnerOwnsExecutor()Description copied from class:AbstractExecutorTaskRunnerFactoryIf the task runner will "own" the Executor it finds/creates, then when the task runner is closed() so to will the Executor be.- Specified by:
taskRunnerOwnsExecutorin classAbstractExecutorTaskRunnerFactory
-
createTaskRunner
protected com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner createTaskRunner(TaskRunnerInit init, Timer timer) - Specified by:
createTaskRunnerin classAbstractExecutorTaskRunnerFactory
-