public static enum ParallelOracle.PoolPolicy extends Enum<ParallelOracle.PoolPolicy>
| Enum Constant and Description |
|---|
CACHED
Maintain a "cached" thread pool.
|
FIXED
Maintain a fixed thread pool.
|
| Modifier and Type | Method and Description |
|---|---|
static ParallelOracle.PoolPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParallelOracle.PoolPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParallelOracle.PoolPolicy FIXED
ParallelOracle.shutdown() or ParallelOracle.shutdownNow() are called.Executors.newFixedThreadPool(int)public static final ParallelOracle.PoolPolicy CACHED
Note that as opposed to Executors.newCachedThreadPool(), the specified pool size will never be
exceeded.
Executors.newCachedThreadPool()public static ParallelOracle.PoolPolicy[] values()
for (ParallelOracle.PoolPolicy c : ParallelOracle.PoolPolicy.values()) System.out.println(c);
public static ParallelOracle.PoolPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018. All rights reserved.