Enum Class ClientConfiguration.RetryOnSocketException

java.lang.Object
java.lang.Enum<ClientConfiguration.RetryOnSocketException>
com.palantir.conjure.java.client.config.ClientConfiguration.RetryOnSocketException
All Implemented Interfaces:
Serializable, Comparable<ClientConfiguration.RetryOnSocketException>, Constable
Enclosing interface:
ClientConfiguration

public static enum ClientConfiguration.RetryOnSocketException extends Enum<ClientConfiguration.RetryOnSocketException>
  • Enum Constant Details

    • ENABLED

      public static final ClientConfiguration.RetryOnSocketException ENABLED
      Default.
    • DANGEROUS_DISABLED

      public static final ClientConfiguration.RetryOnSocketException DANGEROUS_DISABLED
      Disables all SocketException handling. This is almost always not what you want, the solitary case where this is desirable being cases where Conjure is used to create single-host clients with retry on host failure handled outside of the Conjure layer. If you want to use this, please talk to a relevant party; this is here to enable a very specific workflow.
  • 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

      public static ClientConfiguration.RetryOnSocketException 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