Class TitusAgentLauncherImpl.TitusAPIRetryPolicy

java.lang.Object
org.springframework.retry.policy.ExceptionClassifierRetryPolicy
com.netflix.genie.web.agent.launchers.impl.TitusAgentLauncherImpl.TitusAPIRetryPolicy
All Implemented Interfaces:
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:
  • Field Summary

    Fields inherited from interface org.springframework.retry.RetryPolicy

    NO_MAXIMUM_ATTEMPTS_SET
  • Constructor Summary

    Constructors
    Constructor
    Description
    TitusAPIRetryPolicy(Set<org.springframework.http.HttpStatus> retryCodes, int maxAttempts)
    Constructor.
  • Method Summary

    Methods inherited from class org.springframework.retry.policy.ExceptionClassifierRetryPolicy

    canRetry, close, open, registerThrowable, setExceptionClassifier, setPolicyMap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.retry.RetryPolicy

    getMaxAttempts
  • Constructor Details

    • TitusAPIRetryPolicy

      public TitusAPIRetryPolicy(Set<org.springframework.http.HttpStatus> retryCodes, int maxAttempts)
      Constructor.
      Parameters:
      retryCodes - The HttpStatus codes which should be retried if an API call to Titus fails
      maxAttempts - The maximum number of retry attempts that should be made upon call failure