public class ExecutorUtils
extends java.lang.Object
Constructor and Description |
---|
ExecutorUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.ExecutorService |
newCachedThreadPool(boolean daemon,
java.lang.String baseName)
Creates a thread pool that creates new threads as needed, but will reuse
previously constructed threads when they are available.
|
public static java.util.concurrent.ExecutorService newCachedThreadPool(boolean daemon, java.lang.String baseName)
daemon
- true to create the new threads as daemon threads
or false to create the new threads as user threadsbaseName
- the base/prefix to use for the names of the new threads
or null to leave them with their default names
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.