JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.retry

Class PredefinedBackoffStrategies.EqualJitterBackoffStrategy

    • Constructor Detail

      • EqualJitterBackoffStrategy

        public EqualJitterBackoffStrategy(int baseDelay,
         int maxBackoffTime)
    • Method Detail

      • computeDelayBeforeNextRetry

        public long computeDelayBeforeNextRetry(RetryPolicyContext context)
        Description copied from interface: BackoffStrategy
        Compute the delay before the next retry request. This strategy is only consulted when there will be a next retry.
        Parameters:
        context - Context about the state of the last request and information about the number of requests made.
        Returns:
        Amount of time in milliseconds to wait before the next attempt. Must be non-negative (can be zero).
      • delayBeforeNextRetry

        public long delayBeforeNextRetry(AmazonWebServiceRequest originalRequest,
         AmazonClientException exception,
         int retriesAttempted)
        Description copied from interface: RetryPolicy.BackoffStrategy
        Returns the delay (in milliseconds) before next retry attempt.
        Specified by:
        delayBeforeNextRetry in interface RetryPolicy.BackoffStrategy
        Parameters:
        originalRequest - The original request object being executed. For performance reason, this object is not a defensive copy, and caller should not attempt to modify its data.
        exception - The exception from the failed request, represented as an AmazonClientException object. There are two types of exception that will be passed to this method:
        • AmazonServiceException (sub-class of AmazonClientException) indicating a service error
        • AmazonClientException caused by an IOException when executing the HTTP request.
        Any other exceptions are regarded as unexpected failures and are thrown immediately without any retry. For performance reason, this object is not a defensive copy, and caller should not attempt to modify its data.
        retriesAttempted - The number of times the current request has been attempted (not including the next attempt after the delay).
        Returns:
        The delay (in milliseconds) before next retry attempt.
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /