- All Implemented Interfaces:
Serializable, Comparable<TestJob.InFlightRefusal>, java.lang.constant.Constable
- Enclosing class:
TestJob
Why a round was refused its in-flight permits. The two gates bind for very different reasons and need different tuning:
GLOBAL_CAP means the router as a whole is saturated, while POOL_BUDGET means one pool is oversubscribed relative to its own coverage budget. Reporting only "refused" (as this code once did) made the two indistinguishable in the log, so the wrong knob would be tuned.Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe token already holds permits, so it is refused rather than double counted.The global concurrent-test cap is reached.Permits were taken; the round may dispatch.This pool's own in-flight budget is reached.Method Summary
All MethodsModifier and TypeMethodDescriptionstatic TestJob.InFlightRefusalReturns the enum constant of this class with the specified name.static TestJob.InFlightRefusal[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
NONE
Permits were taken; the round may dispatch.ALREADY_HELD
The token already holds permits, so it is refused rather than double counted.GLOBAL_CAP
The global concurrent-test cap is reached.POOL_BUDGET
This pool's own in-flight budget is reached.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null