Package com.mchange.v2.c3p0
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, includingnumHelperThreads
,maxAdministrativeTaskTime
,contextClassLoaderSource
, andprivilegeSpawnedThreads
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
FixedThreadPoolExecutorTaskRunnerFactory.FixedThreadPoolExecutorAsynchronousRunner
-
Nested classes/interfaces inherited from class com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory
AbstractExecutorTaskRunnerFactory.AbstractExecutorAsynchronousRunner
-
-
Constructor Summary
Constructors Constructor Description FixedThreadPoolExecutorTaskRunnerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner
createTaskRunner(TaskRunnerInit init, java.util.Timer timer)
protected java.util.concurrent.Executor
findCreateExecutor(TaskRunnerInit init)
protected 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.-
Methods inherited from class com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory
createTaskRunner, equals, hashCode, otherPropertiesFromConnectionPoolDataSource
-
-
-
-
Method Detail
-
findCreateExecutor
protected java.util.concurrent.Executor findCreateExecutor(TaskRunnerInit init)
- Specified by:
findCreateExecutor
in classAbstractExecutorTaskRunnerFactory
-
taskRunnerOwnsExecutor
protected boolean taskRunnerOwnsExecutor()
Description copied from class:AbstractExecutorTaskRunnerFactory
If 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:
taskRunnerOwnsExecutor
in classAbstractExecutorTaskRunnerFactory
-
createTaskRunner
protected com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner createTaskRunner(TaskRunnerInit init, java.util.Timer timer)
- Specified by:
createTaskRunner
in classAbstractExecutorTaskRunnerFactory
-
-