public class ThreadPools
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ThreadPools.ExecutionMode |
Constructor and Description |
---|
ThreadPools() |
Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.Executor |
getLazyExecutor() |
static java.util.concurrent.Executor |
getSequential() |
static java.util.concurrent.ScheduledExecutorService |
getSequentialSchedular() |
static java.util.concurrent.Executor |
getStandard() |
static java.util.concurrent.ScheduledExecutorService |
getStandardSchedular() |
static boolean |
isUseCommon() |
static void |
setUseCommon(boolean useCommon) |
public static java.util.concurrent.Executor getStandard()
isUseCommon()
is true
Otherwise a new Executor sized toNested the number of threads is used.public static java.util.concurrent.Executor getSequential()
public static java.util.concurrent.ScheduledExecutorService getSequentialSchedular()
public static java.util.concurrent.ScheduledExecutorService getStandardSchedular()
public static java.util.concurrent.Executor getLazyExecutor()
public static boolean isUseCommon()
public static void setUseCommon(boolean useCommon)