Class InstrumentedRetryCondition

  • All Implemented Interfaces:
    com.amazonaws.retry.RetryPolicy.RetryCondition

    public class InstrumentedRetryCondition
    extends java.lang.Object
    implements com.amazonaws.retry.RetryPolicy.RetryCondition
    • Field Summary

      • Fields inherited from interface com.amazonaws.retry.RetryPolicy.RetryCondition

        NO_RETRY_CONDITION
    • Constructor Summary

      Constructors 
      Constructor Description
      InstrumentedRetryCondition​(com.netflix.spectator.api.Registry registry)  
      InstrumentedRetryCondition​(com.netflix.spectator.api.Registry registry, com.amazonaws.retry.RetryPolicy.RetryCondition delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean shouldRetry​(com.amazonaws.AmazonWebServiceRequest originalRequest, com.amazonaws.AmazonClientException exception, int retriesAttempted)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstrumentedRetryCondition

        public InstrumentedRetryCondition​(com.netflix.spectator.api.Registry registry)
      • InstrumentedRetryCondition

        public InstrumentedRetryCondition​(com.netflix.spectator.api.Registry registry,
                                          com.amazonaws.retry.RetryPolicy.RetryCondition delegate)
    • Method Detail

      • shouldRetry

        public boolean shouldRetry​(com.amazonaws.AmazonWebServiceRequest originalRequest,
                                   com.amazonaws.AmazonClientException exception,
                                   int retriesAttempted)
        Specified by:
        shouldRetry in interface com.amazonaws.retry.RetryPolicy.RetryCondition