Top Description Inners Constructors Methods
com.mchange.v2.c3p0

public final Class FixedThreadPoolExecutorTaskRunnerFactory

extends AbstractExecutorTaskRunnerFactory
Class Inheritance
Imports
java.util.Timer, java.util.concurrent.Executor, .Executors, .ThreadFactory, javax.sql.ConnectionPoolDataSource, com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner

This implementation supports all relevant config, including numHelperThreads, maxAdministrativeTaskTime, contextClassLoaderSource, and privilegeSpawnedThreads.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ThreadPoolReportingAsynchronousRunner
protected Executor
protected boolean
taskRunnerOwnsExecutor()

Implements abstract com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory.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.

Inherited from com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory:
createTaskRunnerequalshashCodeotherPropertiesFromConnectionPoolDataSource

Constructor Detail

FixedThreadPoolExecutorTaskRunnerFactoryback to summary
public FixedThreadPoolExecutorTaskRunnerFactory()

Method Detail

createTaskRunnerback to summary
protected ThreadPoolReportingAsynchronousRunner createTaskRunner(TaskRunnerInit init, Timer timer)

Implements abstract com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory.createTaskRunner.

findCreateExecutorback to summary
protected Executor findCreateExecutor(TaskRunnerInit init)

Implements abstract com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory.findCreateExecutor.

taskRunnerOwnsExecutorback to summary
protected boolean taskRunnerOwnsExecutor()

Implements abstract com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory.taskRunnerOwnsExecutor.

Doc from com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory.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.

com.mchange.v2.c3p0 back to summary

protected final Class FixedThreadPoolExecutorTaskRunnerFactory.FixedThreadPoolExecutorAsynchronousRunner

extends AbstractExecutorAsynchronousRunner
Class Inheritance

Field Summary

Inherited from com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory.AbstractExecutorAsynchronousRunner:
inittimer

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public int
public int
Inherited from com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory.AbstractExecutorAsynchronousRunner:
activeCountclosecloseexecutorgetActiveCountgetPendingTaskCountgetStackTracesgetStatusisClosedpostRunnableregisterActivesnapshotActivesunregisterActive

Constructor Detail

FixedThreadPoolExecutorAsynchronousRunnerback to summary
protected FixedThreadPoolExecutorAsynchronousRunner(TaskRunnerInit init, Timer timer)

Method Detail

getIdleCountback to summary
public int getIdleCount()

Overrides com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory.AbstractExecutorAsynchronousRunner.getIdleCount.

Implements com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner.getIdleCount.

getThreadCountback to summary
public int getThreadCount()

Overrides com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory.AbstractExecutorAsynchronousRunner.getThreadCount.

Implements com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner.getThreadCount.