public static enum PooledExecutorService.SaturationPolicy extends Enum<PooledExecutorService.SaturationPolicy>
Enum Constant and Description |
---|
CallerRuns
Runs the task in the calling thread.
|
Fail
Throws a RuntimeException when called.
|
Modifier and Type | Method and Description |
---|---|
static PooledExecutorService.SaturationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PooledExecutorService.SaturationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PooledExecutorService.SaturationPolicy CallerRuns
public static final PooledExecutorService.SaturationPolicy Fail
task.toString()
, so name your runnables if you'd like nice messages
in this case.public static PooledExecutorService.SaturationPolicy[] values()
for (PooledExecutorService.SaturationPolicy c : PooledExecutorService.SaturationPolicy.values()) System.out.println(c);
public static PooledExecutorService.SaturationPolicy 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 © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.