Enum PoolConfiguration.WhenBlockedPolicy
java.lang.Object
java.lang.Enum<PoolConfiguration.WhenBlockedPolicy>
org.apache.commons.jcs3.utils.threadpool.PoolConfiguration.WhenBlockedPolicy
- All Implemented Interfaces:
Serializable
,Comparable<PoolConfiguration.WhenBlockedPolicy>
- Enclosing class:
- PoolConfiguration
public static enum PoolConfiguration.WhenBlockedPolicy
extends Enum<PoolConfiguration.WhenBlockedPolicy>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionabort when queue is full and max threads is reached.block when queue is full and max threads is reached.discard oldest when queue is full and max threads is reached.run in current thread when queue is full and max threads is reached.wait when queue is full and max threads is reached. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.
-
Enum Constant Details
-
ABORT
abort when queue is full and max threads is reached. -
BLOCK
block 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. -
DISCARDOLDEST
discard oldest when queue is full and max threads is reached.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-