Top Description Methods
com.mchange.v2.c3p0

public Interface TaskRunnerFactory

Known Direct Implementers
com.mchange.v2.c3p0.impl.DefaultTaskRunnerFactory, com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory
Imports
java.util.Timer, javax.sql.ConnectionPoolDataSource, com.mchange.v2.async.*

A TaskRunnerFactory should be an immutable class with a public, no-arg constructor, and implement equals and hashCode methods to help support canonicalization. The createTaskRunner method will receive values for all supportable configuration. It is up to the implementation to decide and document what config it can or cannot support. Implementations may find it convenient to capture configuration information as a TaskRunnerInit.

Method Summary

Modifier and TypeMethod and Description
public 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)

Method Detail

createTaskRunnerback to summary
public 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)