Package com.mchange.v2.c3p0
Class AbstractExecutorTaskRunnerFactory
- java.lang.Object
-
- com.mchange.v2.c3p0.AbstractExecutorTaskRunnerFactory
-
- All Implemented Interfaces:
TaskRunnerFactory
- Direct Known Subclasses:
FixedThreadPoolExecutorTaskRunnerFactory
public abstract class AbstractExecutorTaskRunnerFactory extends java.lang.Object implements TaskRunnerFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
AbstractExecutorTaskRunnerFactory.AbstractExecutorAsynchronousRunner
This implementation includes uninformative stub implementations of
-
Constructor Summary
Constructors Constructor Description AbstractExecutorTaskRunnerFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner
createTaskRunner(int num_threads_if_supported, int max_administrative_task_time_if_supported, java.lang.String contextClassLoaderSourceIfSupported, boolean privilege_spawned_threads_if_supported, java.lang.String threadLabelIfSupported, javax.sql.ConnectionPoolDataSource cpds, java.util.Timer timer)
protected abstract com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner
createTaskRunner(TaskRunnerInit init, java.util.Timer timer)
boolean
equals(java.lang.Object o)
protected abstract java.util.concurrent.Executor
findCreateExecutor(TaskRunnerInit init)
int
hashCode()
protected java.util.HashMap
otherPropertiesFromConnectionPoolDataSource(javax.sql.ConnectionPoolDataSource cpds)
protected abstract 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.
-
-
-
Method Detail
-
findCreateExecutor
protected abstract java.util.concurrent.Executor findCreateExecutor(TaskRunnerInit init)
-
taskRunnerOwnsExecutor
protected abstract 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.
-
createTaskRunner
protected abstract com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner createTaskRunner(TaskRunnerInit init, java.util.Timer timer)
-
otherPropertiesFromConnectionPoolDataSource
protected java.util.HashMap otherPropertiesFromConnectionPoolDataSource(javax.sql.ConnectionPoolDataSource cpds)
-
createTaskRunner
public com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner createTaskRunner(int num_threads_if_supported, int max_administrative_task_time_if_supported, java.lang.String contextClassLoaderSourceIfSupported, boolean privilege_spawned_threads_if_supported, java.lang.String threadLabelIfSupported, javax.sql.ConnectionPoolDataSource cpds, java.util.Timer timer)
- Specified by:
createTaskRunner
in interfaceTaskRunnerFactory
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-