public static enum ThreadPoolConfig.ThreadPoolPolicy extends Enum<ThreadPoolConfig.ThreadPoolPolicy>
Enum Constant and Description |
---|
ABORT |
DISCARD |
DISCARDOLDEST |
RUN |
Modifier and Type | Method and Description |
---|---|
static ThreadPoolConfig.ThreadPoolPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadPoolConfig.ThreadPoolPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadPoolConfig.ThreadPoolPolicy ABORT
public static final ThreadPoolConfig.ThreadPoolPolicy DISCARD
public static final ThreadPoolConfig.ThreadPoolPolicy DISCARDOLDEST
public static final ThreadPoolConfig.ThreadPoolPolicy RUN
public static ThreadPoolConfig.ThreadPoolPolicy[] values()
for (ThreadPoolConfig.ThreadPoolPolicy c : ThreadPoolConfig.ThreadPoolPolicy.values()) System.out.println(c);
public static ThreadPoolConfig.ThreadPoolPolicy 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 © 2014 The Apache Software Foundation. All rights reserved.