|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<RejectionPolicy>
org.jboss.threads.RejectionPolicy
public enum RejectionPolicy
Specify the way a task rejection should be handled.
| Enum Constant Summary | |
|---|---|
ABORT
Abort execution with an exception. |
|
BLOCK
Wait until there is room in the queue, or the calling thread is interrupted. |
|
DISCARD
Discard the excess task silently. |
|
DISCARD_OLDEST
Discard the oldest task in the queue silently, and enqueue the new task. |
|
HANDOFF
Hand off the task to another executor. |
|
| Method Summary | |
|---|---|
static RejectionPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static RejectionPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final RejectionPolicy ABORT
public static final RejectionPolicy BLOCK
public static final RejectionPolicy DISCARD
public static final RejectionPolicy DISCARD_OLDEST
public static final RejectionPolicy HANDOFF
| Method Detail |
|---|
public static RejectionPolicy[] values()
for (RejectionPolicy c : RejectionPolicy.values()) System.out.println(c);
public static RejectionPolicy 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 name
java.lang.NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||