Class Concurrents


  • public class Concurrents
    extends Object
    Concurrent utilities.
    • Constructor Detail

      • Concurrents

        public Concurrents()
    • Method Detail

      • newBoundedExecutor

        public static ExecutorService newBoundedExecutor​(int threads,
                                                         int queueSize)
        Construct a new ExecutorService with a fixed amount of threads. Invoker can submit tasks to service until queueSize has reached limit. In that case the invoker gets blocked until the queueSize shrinks.