public static enum PoolConfiguration.WhenBlockedPolicy extends Enum<PoolConfiguration.WhenBlockedPolicy>
Enum Constant and Description |
---|
ABORT
abort when queue is full and max threads is reached.
|
BLOCK
block when queue is full and max threads is reached.
|
DISCARDOLDEST
discard oldest when queue is full and max threads is reached.
|
RUN
run in current thread when queue is full and max threads is reached.
|
WAIT
wait when queue is full and max threads is reached.
|
Modifier and Type | Method and Description |
---|---|
static PoolConfiguration.WhenBlockedPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PoolConfiguration.WhenBlockedPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PoolConfiguration.WhenBlockedPolicy ABORT
public static final PoolConfiguration.WhenBlockedPolicy BLOCK
public static final PoolConfiguration.WhenBlockedPolicy RUN
public static final PoolConfiguration.WhenBlockedPolicy WAIT
public static final PoolConfiguration.WhenBlockedPolicy DISCARDOLDEST
public static PoolConfiguration.WhenBlockedPolicy[] values()
for (PoolConfiguration.WhenBlockedPolicy c : PoolConfiguration.WhenBlockedPolicy.values()) System.out.println(c);
public static PoolConfiguration.WhenBlockedPolicy 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 © 2002–2018 The Apache Software Foundation. All rights reserved.