Class ThreadQueue


  • public class ThreadQueue
    extends Object
    Limits the number of executing threads to a specified maximum.
    • Constructor Detail

      • ThreadQueue

        public ThreadQueue​(int maxRunningThreads)
    • Method Detail

      • clear

        public void clear()
      • add

        public void add​(Runnable runnable)
      • getRunningThreads

        public int getRunningThreads()
      • dispose

        public void dispose()