Class RetryProperties
java.lang.Object
org.springframework.cloud.config.client.RetryProperties
- Author:
- Dave Syer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongintlongdoublebooleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.since 5.1.0 in favor of the deterministic exponential backoff.voidsetEnabled(boolean enabled) voidsetInitialInterval(long initialInterval) voidsetMaxAttempts(int maxAttempts) voidsetMaxInterval(long maxInterval) voidsetMultiplier(double multiplier) voidsetUseRandomPolicy(boolean useRandomPolicy) Deprecated, for removal: This API element is subject to removal in a future version.since 5.1.0 in favor of the deterministic exponential backoff.
-
Field Details
-
PREFIX
ConfigurationProperties prefix.- See Also:
-
-
Constructor Details
-
RetryProperties
public RetryProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getInitialInterval
public long getInitialInterval() -
setInitialInterval
public void setInitialInterval(long initialInterval) -
getMultiplier
public double getMultiplier() -
setMultiplier
public void setMultiplier(double multiplier) -
getMaxInterval
public long getMaxInterval() -
setMaxInterval
public void setMaxInterval(long maxInterval) -
getMaxAttempts
public int getMaxAttempts() -
setMaxAttempts
public void setMaxAttempts(int maxAttempts) -
isUseRandomPolicy
@Deprecated(since="5.1.0", forRemoval=true) @DeprecatedConfigurationProperty(since="5.1.0", reason="Randomized backoff will be removed in favor of the deterministic exponential backoff.") public boolean isUseRandomPolicy()Deprecated, for removal: This API element is subject to removal in a future version.since 5.1.0 in favor of the deterministic exponential backoff.- Returns:
- whether a random exponential backoff policy is used.
-
setUseRandomPolicy
Deprecated, for removal: This API element is subject to removal in a future version.since 5.1.0 in favor of the deterministic exponential backoff.- Parameters:
useRandomPolicy- whether to use a random exponential backoff policy.
-