Enum Class ClientConfiguration.RetryOnTimeout
java.lang.Object
java.lang.Enum<ClientConfiguration.RetryOnTimeout>
com.palantir.conjure.java.client.config.ClientConfiguration.RetryOnTimeout
- All Implemented Interfaces:
Serializable, Comparable<ClientConfiguration.RetryOnTimeout>, Constable
- Enclosing interface:
ClientConfiguration
public static enum ClientConfiguration.RetryOnTimeout
extends Enum<ClientConfiguration.RetryOnTimeout>
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEnables retry on read/write timeout.Default. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ClientConfiguration.RetryOnTimeout[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISABLED
Default. -
DANGEROUS_ENABLE_AT_RISK_OF_RETRY_STORMS
Enables retry on read/write timeout. This was the default behavior in versions up to and including 4.24.x. Consumers should almost never use this option, reserving it for when their clients have guaranteed that they will never retry on timeout.The risk of retry storms is severe. If the client times out before the consumer finishes retrying on its timeout, it will submit a new request which will also retry on timeout. Expensive requests that time out have brought down servers with this behavior enabled.
Note that connect timeouts will always be retried.
-
-
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
-