| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv HashSet | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv TimerTask | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv int | |
| pack-priv static final MLogger | |
| pack-priv HashSet | |
| pack-priv int | |
| pack-priv Timer | |
| pack-priv int | |
| pack-priv LinkedList | |
| pack-priv static final int | |
| pack-priv static final long | |
| pack-priv TimerTask | |
| pack-priv Random | |
| pack-priv boolean | |
| pack-priv Map | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| private | ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, Timer myTimer, boolean should_cancel_timer, String threadLabel)
|
| private | ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, Timer myTimer, boolean should_cancel_timer)
|
| public | ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, Timer myTimer, String threadLabel)
|
| public | ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, Timer myTimer)
|
| public | ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, String threadLabel)
|
| public | ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock)
|
| public | ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, Timer sharedTimer, String threadLabel)
|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public 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. |
| private void | |
| public synchronized int | |
| public synchronized int | |
| private String | |
| public synchronized String | |
| private String | |
| public synchronized int | |
| public synchronized String | |
| private String | |
| public synchronized String | |
| public synchronized int | |
| public synchronized void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| available | back to summary |
|---|---|
| pack-priv HashSet<E> available | |
| daemon | back to summary |
|---|---|
| pack-priv boolean daemon | |
| deadlock_detector_interval | back to summary |
|---|---|
| pack-priv int deadlock_detector_interval | |
| deadlockDetector | back to summary |
|---|---|
| pack-priv TimerTask deadlockDetector | |
| DFLT_DEADLOCK_DETECTOR_INTERVAL | back to summary |
|---|---|
| pack-priv static final int DFLT_DEADLOCK_DETECTOR_INTERVAL | |
| DFLT_INTERRUPT_DELAY_AFTER_APPARENT_DEADLOCK | back to summary |
|---|---|
| pack-priv static final int DFLT_INTERRUPT_DELAY_AFTER_APPARENT_DEADLOCK | |
| DFLT_MAX_EMERGENCY_THREADS | back to summary |
|---|---|
| pack-priv static final int DFLT_MAX_EMERGENCY_THREADS | |
| DFLT_MAX_INDIVIDUAL_TASK_TIME | back to summary |
|---|---|
| pack-priv static final int DFLT_MAX_INDIVIDUAL_TASK_TIME | |
| interrupt_delay_after_apparent_deadlock | back to summary |
|---|---|
| pack-priv int interrupt_delay_after_apparent_deadlock | |
| logger | back to summary |
|---|---|
| pack-priv static final MLogger logger | |
| managed | back to summary |
|---|---|
| pack-priv HashSet<E> managed | |
| max_individual_task_time | back to summary |
|---|---|
| pack-priv int max_individual_task_time | |
| myTimer | back to summary |
|---|---|
| pack-priv Timer myTimer | |
| num_threads | back to summary |
|---|---|
| pack-priv int num_threads | |
| pendingTasks | back to summary |
|---|---|
| pack-priv LinkedList<E> pendingTasks | |
| POLL_FOR_STOP_INTERVAL | back to summary |
|---|---|
| pack-priv static final int POLL_FOR_STOP_INTERVAL | |
| PURGE_EVERY | back to summary |
|---|---|
| pack-priv static final long PURGE_EVERY | |
| replacedThreadInterruptor | back to summary |
|---|---|
| pack-priv TimerTask replacedThreadInterruptor | |
| rnd | back to summary |
|---|---|
| pack-priv Random rnd | |
| should_cancel_timer | back to summary |
|---|---|
| pack-priv boolean should_cancel_timer | |
| stoppedThreadsToStopDates | back to summary |
|---|---|
| pack-priv Map<K, V> stoppedThreadsToStopDates | |
| threadLabel | back to summary |
|---|---|
| pack-priv String threadLabel | |
| ThreadPoolAsynchronousRunner | back to summary |
|---|---|
| private ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, Timer myTimer, boolean should_cancel_timer, String threadLabel) | |
| ThreadPoolAsynchronousRunner | back to summary |
|---|---|
| private ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, Timer myTimer, boolean should_cancel_timer) | |
| ThreadPoolAsynchronousRunner | back to summary |
|---|---|
| public ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, Timer myTimer, String threadLabel) | |
| ThreadPoolAsynchronousRunner | back to summary |
|---|---|
| public ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, Timer myTimer) | |
| ThreadPoolAsynchronousRunner | back to summary |
|---|---|
| public ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, String threadLabel) | |
| ThreadPoolAsynchronousRunner | back to summary |
|---|---|
| public ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock) | |
| ThreadPoolAsynchronousRunner | back to summary |
|---|---|
| public ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, Timer sharedTimer, String threadLabel) | |
| ThreadPoolAsynchronousRunner | back to summary |
|---|---|
| public ThreadPoolAsynchronousRunner(int num_threads, boolean daemon, Timer sharedTimer) | |
| ThreadPoolAsynchronousRunner | back to summary |
|---|---|
| public ThreadPoolAsynchronousRunner(int num_threads, boolean daemon) | |
| appendStatusString | back to summary |
|---|---|
| private void appendStatusString(StringBuffer sb) | |
| close | back to summary |
|---|---|
| public 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 ). | |
| ensureReplacedThreadsProcessing | back to summary |
|---|---|
| private void ensureReplacedThreadsProcessing() | |
| getActiveCount | back to summary |
|---|---|
| public synchronized int getActiveCount() Implements com. | |
| getIdleCount | back to summary |
|---|---|
| public synchronized int getIdleCount() Implements com. | |
| getJvmStackTraces | back to summary |
|---|---|
| private String getJvmStackTraces(int initial_indent) | |
| getMultiLineStatusString | back to summary |
|---|---|
| public synchronized String getMultiLineStatusString() | |
| getMultiLineStatusString | back to summary |
|---|---|
| private String getMultiLineStatusString(int initial_indent) | |
| getPendingTaskCount | back to summary |
|---|---|
| public synchronized int getPendingTaskCount() Implements com. | |
| getStackTraces | back to summary |
|---|---|
| public synchronized String getStackTraces() Implements com. | |
| getStackTraces | back to summary |
|---|---|
| private String getStackTraces(int initial_indent) | |
| getStatus | back to summary |
|---|---|
| public synchronized String getStatus() Implements com. | |
| getThreadCount | back to summary |
|---|---|
| public synchronized int getThreadCount() Implements com. | |
| postRunnable | back to summary |
|---|---|
| public synchronized void postRunnable(Runnable r) Implements com. | |
| printStackTraces | back to summary |
|---|---|
| private void printStackTraces(IndentedWriter iw, Object thread, Object[] stackTraces) throws IOException | |
| processReplacedThreads | back to summary |
|---|---|
| private void processReplacedThreads() | |
| recreateThreadsAndTasks | back to summary |
|---|---|
| private void recreateThreadsAndTasks() | |
| runInEmergencyThread | back to summary |
|---|---|
| private void runInEmergencyThread(final Runnable r) | |
| shuttingDown | back to summary |
|---|---|
| private void shuttingDown(ThreadPoolAsynchronousRunner. | |
| stopReplacedThreadsProcessing | back to summary |
|---|---|
| private void stopReplacedThreadsProcessing() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv LinkedList | |
| pack-priv LinkedList |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Implements abstract java. Implements java. The action to be performed by this timer task. |
| current | back to summary |
|---|---|
| pack-priv LinkedList<E> current | |
| last | back to summary |
|---|---|
| pack-priv LinkedList<E> last | |
| DeadlockDetector | back to summary |
|---|---|
| pack-priv DeadlockDetector() | |
| run | back to summary |
|---|---|
| public void run() Implements abstract java. Implements java. Doc from java. The action to be performed by this timer task. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv Thread | |
| pack-priv ThreadPoolAsynchronousRunner. | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Implements abstract java. Implements java. The action to be performed by this timer task. |
| fixedTaskStr | back to summary |
|---|---|
| pack-priv String fixedTaskStr | |
| interruptMe | back to summary |
|---|---|
| pack-priv Thread interruptMe | |
| pt | back to summary |
|---|---|
| pack-priv ThreadPoolAsynchronousRunner. | |
| threadStr | back to summary |
|---|---|
| pack-priv String threadStr | |
| MaxIndividualTaskTimeEnforcer | back to summary |
|---|---|
| pack-priv MaxIndividualTaskTimeEnforcer(ThreadPoolAsynchronousRunner. | |
| MaxIndividualTaskTimeEnforcer | back to summary |
|---|---|
| pack-priv MaxIndividualTaskTimeEnforcer(Thread interruptMe, String threadStr, String fixedTaskStr) | |
| run | back to summary |
|---|---|
| public void run() Implements abstract java. Implements java. Doc from java. The action to be performed by this timer task. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Runnable | |
| pack-priv int | |
| pack-priv TimerTask | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv void | |
| pack-priv Runnable | |
| public int | |
| private void | |
| public void | run()
Overrides java. Implements java. This method is run by the thread when it executes. |
| private void |
| currentTask | back to summary |
|---|---|
| pack-priv Runnable currentTask | |
| index | back to summary |
|---|---|
| pack-priv int index | |
| maxIndividualTaskTimeEnforcer | back to summary |
|---|---|
| pack-priv TimerTask maxIndividualTaskTimeEnforcer | |
| should_stop | back to summary |
|---|---|
| pack-priv boolean should_stop | |
| PoolThread | back to summary |
|---|---|
| pack-priv PoolThread(int index, boolean daemon) | |
| cancelMaxIndividualTaskTimeEnforcer | back to summary |
|---|---|
| private void cancelMaxIndividualTaskTimeEnforcer() | |
| gentleStop | back to summary |
|---|---|
| pack-priv void gentleStop() | |
| getCurrentTask | back to summary |
|---|---|
| pack-priv Runnable getCurrentTask() | |
| getIndex | back to summary |
|---|---|
| public int getIndex() | |
| purgeTimer | back to summary |
|---|---|
| private void purgeTimer() | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a | |
| setMaxIndividualTaskTimeEnforcer | back to summary |
|---|---|
| private void setMaxIndividualTaskTimeEnforcer() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Implements abstract java. Implements java. The action to be performed by this timer task. |
| ReplacedThreadInterruptor | back to summary |
|---|---|
| pack-priv ReplacedThreadInterruptor() | |
| run | back to summary |
|---|---|
| public void run() Implements abstract java. Implements java. Doc from java. The action to be performed by this timer task. | |