Class TitusAgentLauncherImpl.TitusAPIRetryPolicy
- java.lang.Object
-
- org.springframework.retry.policy.ExceptionClassifierRetryPolicy
-
- com.netflix.genie.web.agent.launchers.impl.TitusAgentLauncherImpl.TitusAPIRetryPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,org.springframework.retry.RetryPolicy
- Enclosing class:
- TitusAgentLauncherImpl
public static class TitusAgentLauncherImpl.TitusAPIRetryPolicy extends org.springframework.retry.policy.ExceptionClassifierRetryPolicy
A retry policy that has different behavior based on the type of exception thrown by the rest client during calls to the Titus API.- Since:
- 4.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TitusAPIRetryPolicy(java.util.Set<org.springframework.http.HttpStatus> retryCodes, int maxAttempts)
Constructor.
-
-
-
Constructor Detail
-
TitusAPIRetryPolicy
public TitusAPIRetryPolicy(java.util.Set<org.springframework.http.HttpStatus> retryCodes, int maxAttempts)
Constructor.- Parameters:
retryCodes
- TheHttpStatus
codes which should be retried if an API call to Titus failsmaxAttempts
- The maximum number of retry attempts that should be made upon call failure
-
-