Class ExecutorThreadPool

    • Constructor Detail

      • ExecutorThreadPool

        public ExecutorThreadPool()
        Deprecated.
      • ExecutorThreadPool

        public ExecutorThreadPool​(int maxThreads)
        Deprecated.
      • ExecutorThreadPool

        public ExecutorThreadPool​(int maxThreads,
                                  int minThreads)
        Deprecated.
      • ExecutorThreadPool

        public ExecutorThreadPool​(int maxThreads,
                                  int minThreads,
                                  BlockingQueue<Runnable> queue)
        Deprecated.
      • ExecutorThreadPool

        public ExecutorThreadPool​(ThreadPoolExecutor executor)
        Deprecated.
      • ExecutorThreadPool

        public ExecutorThreadPool​(ThreadPoolExecutor executor,
                                  int reservedThreads)
        Deprecated.
    • Method Detail

      • getName

        @ManagedAttribute("name of this thread pool")
        public String getName()
        Deprecated.
        Returns:
        the name of the this thread pool
      • setName

        public void setName​(String name)
        Deprecated.
        Parameters:
        name - the name of this thread pool, used to name threads
      • getIdleTimeout

        @ManagedAttribute("maximum time a thread may be idle in ms")
        public int getIdleTimeout()
        Deprecated.
        Returns:
        the maximum thread idle time in ms.
        See Also:
        setIdleTimeout(int)
      • setIdleTimeout

        public void setIdleTimeout​(int idleTimeout)
        Deprecated.

        Sets the maximum thread idle time in ms.

        Threads that are idle for longer than this period may be stopped.

        Parameters:
        idleTimeout - the maximum thread idle time in ms.
        See Also:
        getIdleTimeout()
      • getReservedThreads

        @ManagedAttribute("the number of reserved threads in the pool")
        public int getReservedThreads()
        Deprecated.
        Returns:
        number of reserved threads or -1 to indicate that the number is heuristically determined
        See Also:
        setReservedThreads(int)
      • setReservedThreads

        public void setReservedThreads​(int reservedThreads)
        Deprecated.
        Sets the number of reserved threads.
        Parameters:
        reservedThreads - number of reserved threads or -1 to determine the number heuristically
        See Also:
        getReservedThreads()
      • setThreadsPriority

        public void setThreadsPriority​(int priority)
        Deprecated.
      • getThreadsPriority

        public int getThreadsPriority()
        Deprecated.
      • isDaemon

        @ManagedAttribute("whether this thread pool uses daemon threads")
        public boolean isDaemon()
        Deprecated.
        Returns:
        whether this thread pool uses daemon threads
        See Also:
        setDaemon(boolean)
      • setDaemon

        public void setDaemon​(boolean daemon)
        Deprecated.
        Parameters:
        daemon - whether this thread pool uses daemon threads
        See Also:
        Thread.setDaemon(boolean)
      • isDetailedDump

        @ManagedAttribute("reports additional details in the dump")
        public boolean isDetailedDump()
        Deprecated.
      • setDetailedDump

        public void setDetailedDump​(boolean detailedDump)
        Deprecated.
      • getThreads

        @ManagedAttribute("number of threads in the pool")
        public int getThreads()
        Deprecated.
        Specified by:
        getThreads in interface ThreadPool
        Returns:
        The total number of threads currently in the pool
      • getIdleThreads

        @ManagedAttribute("number of idle threads in the pool")
        public int getIdleThreads()
        Deprecated.
        Specified by:
        getIdleThreads in interface ThreadPool
        Returns:
        The number of idle threads in the pool
      • tryExecute

        public boolean tryExecute​(Runnable task)
        Deprecated.
        Description copied from interface: TryExecutor
        Attempt to execute a task.
        Specified by:
        tryExecute in interface TryExecutor
        Parameters:
        task - The task to be executed
        Returns:
        True IFF the task has been given directly to a thread to execute. The task cannot be queued pending the later availability of a Thread.
      • dump

        public void dump​(Appendable out,
                         String indent)
                  throws IOException
        Deprecated.
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Overrides:
        dump in class ContainerLifeCycle
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        IOException - if unable to write to Appendable