public enum ThreadPoolRejectedPolicy extends Enum<ThreadPoolRejectedPolicy>
Enum Constant and Description |
---|
Abort |
CallerRuns |
Discard |
DiscardOldest |
Modifier and Type | Method and Description |
---|---|
RejectedExecutionHandler |
asRejectedExecutionHandler() |
static ThreadPoolRejectedPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadPoolRejectedPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadPoolRejectedPolicy Abort
public static final ThreadPoolRejectedPolicy CallerRuns
public static final ThreadPoolRejectedPolicy DiscardOldest
public static final ThreadPoolRejectedPolicy Discard
public static ThreadPoolRejectedPolicy[] values()
for (ThreadPoolRejectedPolicy c : ThreadPoolRejectedPolicy.values()) System.out.println(c);
public static ThreadPoolRejectedPolicy 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 nullpublic RejectedExecutionHandler asRejectedExecutionHandler()
Apache Camel