Class RetryProfile


  • public class RetryProfile
    extends Object
    Returned by RetryPolicyProvider implementers to describe needed retry work (indicate if a retry should be attempted and how long to wait).

    Author:
    Todd S. Murchison
    • Constructor Detail

      • RetryProfile

        public RetryProfile​(boolean shouldRetry,
                            long retryAfterMilliseconds)
        Constructs an instance of RetryProfile with the given values.
    • Method Detail

      • shouldRetry

        public boolean shouldRetry()
        Returns a flag indicating if it is recommended to retry a Request.
      • getRetryAfterMilliseconds

        public long getRetryAfterMilliseconds()
        Returns the number of milliseconds that it is recommended to wait before retrying a Request.