Interface TaskRunnerFactory
- All Known Implementing Classes:
AbstractExecutorTaskRunnerFactory, DefaultTaskRunnerFactory, FixedThreadPoolExecutorTaskRunnerFactory
public interface TaskRunnerFactory
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 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)
-
Method Details
-
createTaskRunner
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)
-