Package de.galan.commons.util
Class Concurrents
java.lang.Object
de.galan.commons.util.Concurrents
Concurrent utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorServicenewBoundedExecutor(int threads, int queueSize) Construct a new ExecutorService with a fixed amount of threads.
-
Constructor Details
-
Concurrents
public Concurrents()
-
-
Method Details
-
newBoundedExecutor
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.
-