| Modifier and Type | Class and Description |
|---|---|
| protected abstract class | AbstractExecutorTaskRunnerFactory.
This implementation includes uninformative stub implementations of
|
| Modifier and Type | Field and Description |
|---|---|
| private static final StackTraceElement[] | |
| private static final MLogger | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract ThreadPoolReportingAsynchronousRunner | |
| 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)
Implements com.
|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| protected abstract Executor | |
| public int | |
| protected HashMap | |
| 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. |
| EMPTY_STACK_TRACES | back to summary |
|---|---|
| private static final StackTraceElement[] EMPTY_STACK_TRACES | |
| logger | back to summary |
|---|---|
| private static final MLogger logger | |
| SEP | back to summary |
|---|---|
| private static final String SEP | |
| AbstractExecutorTaskRunnerFactory | back to summary |
|---|---|
| public AbstractExecutorTaskRunnerFactory() | |
| createTaskRunner | back to summary |
|---|---|
| protected abstract ThreadPoolReportingAsynchronousRunner createTaskRunner(TaskRunnerInit init, Timer timer) | |
| createTaskRunner | back 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) Implements com. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| findCreateExecutor | back to summary |
|---|---|
| protected abstract Executor findCreateExecutor(TaskRunnerInit init) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| otherPropertiesFromConnectionPoolDataSource | back to summary |
|---|---|
| protected HashMap | |
| taskRunnerOwnsExecutor | back to summary |
|---|---|
| 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. | |
public int getThreadCount() { return -1; }
public int getIdleCount() { return -1; }
public int getPendingTaskCount() { return -1; }
Consider overriding those if you can!
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private HashSet | |
| protected final TaskRunnerInit | |
| private boolean | |
| private final int | |
| protected final Timer | |
| private Executor | |
| private Object |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected synchronized int | |
| public synchronized void | close(boolean
Should be regarded as
a hint, not a guarantee. If true, pending,
not-yet-performed tasks will be skipped,
if possible.
Currently executing tasks may or
may not be interrupted. If false, all
previously scheduled tasks will be
completed prior to clean-up. The method
returns immediately regardless. skip_remaining_tasks)Implements com. Finish with this AsynchronousRunner, and clean-up any Threads or resources it may hold. |
| public void | close()
Implements com. Clean-up resources held by this asynchronous runner as soon as possible. |
| protected Executor | |
| public int | |
| public int | |
| public int | |
| public String | |
| public String | |
| public int | |
| protected synchronized boolean | |
| public synchronized void | |
| protected synchronized void | |
| protected synchronized HashSet | |
| protected synchronized void |
| activeWrapperRunnables | back to summary |
|---|---|
| private HashSet<E> activeWrapperRunnables | |
| init | back to summary |
|---|---|
| protected final TaskRunnerInit init | |
| is_closed | back to summary |
|---|---|
| private boolean is_closed | |
| matt_ms | back to summary |
|---|---|
| private final int matt_ms | |
| timer | back to summary |
|---|---|
| protected final Timer timer | |
| x | back to summary |
|---|---|
| private Executor x | |
| xlock | back to summary |
|---|---|
| private Object xlock | |
| AbstractExecutorAsynchronousRunner | back to summary |
|---|---|
| protected AbstractExecutorAsynchronousRunner(TaskRunnerInit init, Timer timer) | |
| activeCount | back to summary |
|---|---|
| protected synchronized int activeCount() | |
| close | back to summary |
|---|---|
| public synchronized void close(boolean skip_remaining_tasks) Implements com. Doc from com. Finish with this AsynchronousRunner, and clean-up any Threads or resources it may hold.
| |
| close | back to summary |
|---|---|
| public void close() Implements com. Doc from com. Clean-up resources held by this asynchronous runner as soon as possible. Remaining tasks are skipped if possible, and any tasks executing when close() is called may or may not be interrupted. Equivalent to close( true ). | |
| executor | back to summary |
|---|---|
| protected Executor executor() | |
| getActiveCount | back to summary |
|---|---|
| public int getActiveCount() Implements com. | |
| getIdleCount | back to summary |
|---|---|
| public int getIdleCount() Implements com. | |
| getPendingTaskCount | back to summary |
|---|---|
| public int getPendingTaskCount() Implements com. | |
| getStackTraces | back to summary |
|---|---|
| public String getStackTraces() Implements com. | |
| getStatus | back to summary |
|---|---|
| public String getStatus() Implements com. | |
| getThreadCount | back to summary |
|---|---|
| public int getThreadCount() Implements com. | |
| isClosed | back to summary |
|---|---|
| protected synchronized boolean isClosed() | |
| postRunnable | back to summary |
|---|---|
| public synchronized void postRunnable(Runnable r) Implements com. | |
| registerActive | back to summary |
|---|---|
| protected synchronized void registerActive(AbstractExecutorTaskRunnerFactory. | |
| snapshotActives | back to summary |
|---|---|
| protected synchronized HashSet | |
| unregisterActive | back to summary |
|---|---|
| protected synchronized void unregisterActive(AbstractExecutorTaskRunnerFactory. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized String | |
| public synchronized StackTraceElement[] | |
| public synchronized void | |
| public void | |
| private synchronized void |
| carrier | back to summary |
|---|---|
| pack-priv Thread carrier | |
| inner | back to summary |
|---|---|
| pack-priv Runnable inner | |
| WrapperRunnable | back to summary |
|---|---|
| pack-priv WrapperRunnable(Runnable inner) | |
| getCarrierName | back to summary |
|---|---|
| public synchronized String getCarrierName() | |
| getStackTrace | back to summary |
|---|---|
| public synchronized StackTraceElement[] getStackTrace() | |
| interrupt | back to summary |
|---|---|
| public synchronized void interrupt() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| setCarrier | back to summary |
|---|---|
| private synchronized void setCarrier(Thread t) | |