Class SystemOneConnectionProperties.Retry
java.lang.Object
org.springframework.ai.model.systemone.autoconfigure.SystemOneConnectionProperties.Retry
- Enclosing class:
- SystemOneConnectionProperties
How transient failures are retried. The defaults are those of
SystemOneRetryUtils.DEFAULT_RETRY_POLICY.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetInitialBackoff(Duration initialBackoff) voidsetMaxBackoff(Duration maxBackoff) voidsetMaxRetries(int maxRetries) voidsetTimeout(Duration timeout) org.springframework.core.retry.RetryPolicyThe policy these settings describe, built bySystemOneRetryUtils.retryPolicy(int, java.time.Duration, java.time.Duration, java.time.Duration).
-
Constructor Details
-
Retry
public Retry()
-
-
Method Details
-
getMaxRetries
public int getMaxRetries() -
setMaxRetries
public void setMaxRetries(int maxRetries) -
getInitialBackoff
-
setInitialBackoff
-
getMaxBackoff
-
setMaxBackoff
-
getTimeout
-
setTimeout
-
toRetryPolicy
public org.springframework.core.retry.RetryPolicy toRetryPolicy()The policy these settings describe, built bySystemOneRetryUtils.retryPolicy(int, java.time.Duration, java.time.Duration, java.time.Duration).- Returns:
- the policy
- Throws:
IllegalStateException- when the settings cannot work, naming the property
-