Class Concurrents

java.lang.Object
de.galan.commons.util.Concurrents

public class Concurrents extends Object
Concurrent utilities.
  • Constructor Details

    • Concurrents

      public Concurrents()
  • Method Details

    • 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.