Class ThreadPoolAsynchronousRunner

    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadPoolAsynchronousRunner​(int num_threads, boolean daemon)  
      ThreadPoolAsynchronousRunner​(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock)  
      ThreadPoolAsynchronousRunner​(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, java.lang.String threadLabel)  
      ThreadPoolAsynchronousRunner​(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, java.util.Timer myTimer)  
      ThreadPoolAsynchronousRunner​(int num_threads, boolean daemon, int max_individual_task_time, int deadlock_detector_interval, int interrupt_delay_after_apparent_deadlock, java.util.Timer myTimer, java.lang.String threadLabel)  
      ThreadPoolAsynchronousRunner​(int num_threads, boolean daemon, java.util.Timer sharedTimer)  
      ThreadPoolAsynchronousRunner​(int num_threads, boolean daemon, java.util.Timer sharedTimer, java.lang.String threadLabel)  
    • Constructor Detail

      • ThreadPoolAsynchronousRunner

        public ThreadPoolAsynchronousRunner​(int num_threads,
                                            boolean daemon,
                                            int max_individual_task_time,
                                            int deadlock_detector_interval,
                                            int interrupt_delay_after_apparent_deadlock,
                                            java.util.Timer myTimer,
                                            java.lang.String threadLabel)
      • ThreadPoolAsynchronousRunner

        public ThreadPoolAsynchronousRunner​(int num_threads,
                                            boolean daemon,
                                            int max_individual_task_time,
                                            int deadlock_detector_interval,
                                            int interrupt_delay_after_apparent_deadlock,
                                            java.util.Timer myTimer)
      • ThreadPoolAsynchronousRunner

        public ThreadPoolAsynchronousRunner​(int num_threads,
                                            boolean daemon,
                                            int max_individual_task_time,
                                            int deadlock_detector_interval,
                                            int interrupt_delay_after_apparent_deadlock,
                                            java.lang.String threadLabel)
      • ThreadPoolAsynchronousRunner

        public ThreadPoolAsynchronousRunner​(int num_threads,
                                            boolean daemon,
                                            int max_individual_task_time,
                                            int deadlock_detector_interval,
                                            int interrupt_delay_after_apparent_deadlock)
      • ThreadPoolAsynchronousRunner

        public ThreadPoolAsynchronousRunner​(int num_threads,
                                            boolean daemon,
                                            java.util.Timer sharedTimer,
                                            java.lang.String threadLabel)
      • ThreadPoolAsynchronousRunner

        public ThreadPoolAsynchronousRunner​(int num_threads,
                                            boolean daemon,
                                            java.util.Timer sharedTimer)
      • ThreadPoolAsynchronousRunner

        public ThreadPoolAsynchronousRunner​(int num_threads,
                                            boolean daemon)
    • Method Detail

      • getThreadCount

        public int getThreadCount()
      • close

        public void close​(boolean skip_remaining_tasks)
        Description copied from interface: AsynchronousRunner
        Finish with this AsynchronousRunner, and clean-up any Threads or resources it may hold.
        Specified by:
        close in interface AsynchronousRunner
        Parameters:
        skip_remaining_tasks - 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.
      • close

        public void close()
        Description copied from interface: AsynchronousRunner
        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 ).
        Specified by:
        close in interface AsynchronousRunner
        Specified by:
        close in interface ClosableResource
      • getActiveCount

        public int getActiveCount()
      • getIdleCount

        public int getIdleCount()
      • getPendingTaskCount

        public int getPendingTaskCount()
      • getStatus

        public java.lang.String getStatus()
      • getStackTraces

        public java.lang.String getStackTraces()
      • getMultiLineStatusString

        public java.lang.String getMultiLineStatusString()