Class RetrialPolicy

java.lang.Object
jline.lang.constant.RetrialPolicy

public final class RetrialPolicy extends Object
Retrial policies for an orbiting population.

The policy fixes how the aggregate rate at which the orbit attempts to re-enter the station depends on the orbit size n:

  • LINEAR - each orbiting customer retries independently at rate nu, so the aggregate retrial rate is n*nu. This is the classical retrial queue of Falin and Templeton.
  • CONSTANT - the orbit as a whole retries at rate nu whenever it is non-empty, independently of n. This models a single retrial controller shared by the orbit rather than per-customer timers.

Declared as a constant class rather than an enum so that the numeric values match the MATLAB RetrialPolicy constants (LINEAR = 1, CONSTANT = 2) carried in sn.retrialPolicy across the codebases.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The orbit retries as a whole at rate nu whenever it is non-empty.
    static final int
    Each orbiting customer retries at its own rate: aggregate rate n*nu.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    Parses a retrial policy from its text representation.
    static String
    toText(int type)
    Text representation of a retrial policy.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LINEAR

      public static final int LINEAR
      Each orbiting customer retries at its own rate: aggregate rate n*nu.
      See Also:
    • CONSTANT

      public static final int CONSTANT
      The orbit retries as a whole at rate nu whenever it is non-empty.
      See Also:
  • Method Details

    • toText

      public static String toText(int type)
      Text representation of a retrial policy.
      Parameters:
      type - the policy constant
      Returns:
      the policy name
    • fromText

      public static int fromText(String text)
      Parses a retrial policy from its text representation.
      Parameters:
      text - the policy name
      Returns:
      the policy constant