java.lang.Object
java.lang.Enum<TestJob.InFlightRefusal>
net.i2p.router.tunnel.pool.TestJob.InFlightRefusal
All Implemented Interfaces:
Serializable, Comparable<TestJob.InFlightRefusal>, java.lang.constant.Constable
Enclosing class:
TestJob

static enum TestJob.InFlightRefusalextends Enum<TestJob.InFlightRefusal>
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.
  • Enum Constant Details

    • NONE

      public static final TestJob.InFlightRefusal NONE
      Permits were taken; the round may dispatch.
    • ALREADY_HELD

      public static final TestJob.InFlightRefusal ALREADY_HELD
      The token already holds permits, so it is refused rather than double counted.
    • GLOBAL_CAP

      public static final TestJob.InFlightRefusal GLOBAL_CAP
      The global concurrent-test cap is reached.
    • POOL_BUDGET

      public static final TestJob.InFlightRefusal POOL_BUDGET
      This pool's own in-flight budget is reached.
  • Method Details

    • values

      public static TestJob.InFlightRefusal[] 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

      public static TestJob.InFlightRefusal valueOf(String name)
      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 name
      NullPointerException - if the argument is null