Enum Class Backoff.None

java.lang.Object
java.lang.Enum<Backoff.None>
org.apache.cassandra.utils.Backoff.None
All Implemented Interfaces:
Serializable, Comparable<Backoff.None>, Constable, Backoff
Enclosing interface:
Backoff

public static enum Backoff.None extends Enum<Backoff.None> implements Backoff
  • Enum Constant Details

  • Method Details

    • values

      public static Backoff.None[] 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 Backoff.None 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
    • maxAttempts

      public int maxAttempts()
      Specified by:
      maxAttempts in interface Backoff
      Returns:
      max attempts allowed, == 0 implies no retries are allowed
    • computeWaitTime

      public long computeWaitTime(int retryCount)
      Specified by:
      computeWaitTime in interface Backoff
    • unit

      public TimeUnit unit()
      Specified by:
      unit in interface Backoff