Class RetryOnThrottlingCondition

  • All Implemented Interfaces:
    RetryCondition

    public final class RetryOnThrottlingCondition
    extends Object
    implements RetryCondition
    A RetryCondition that will return true if the provided exception seems to be due to a throttling error from the service to the client.
    • Method Detail

      • shouldRetry

        public boolean shouldRetry​(RetryPolicyContext context)
        Description copied from interface: RetryCondition
        Determine whether a request should or should not be retried.
        Specified by:
        shouldRetry in interface RetryCondition
        Parameters:
        context - Context about the state of the last request and information about the number of requests made.
        Returns:
        True if the request should be retried, false if not.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object