public enum ThreadPoolRejectedPolicy extends java.lang.Enum<ThreadPoolRejectedPolicy>
| Enum Constant and Description |
|---|
Abort |
CallerRuns |
Discard |
DiscardOldest |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.RejectedExecutionHandler |
asRejectedExecutionHandler() |
static ThreadPoolRejectedPolicy |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.util.concurrent.RejectedExecutionHandler asRejectedExecutionHandler()
Copyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.