Class ApiResultRetryAlgorithm<ResponseT>

  • All Implemented Interfaces:
    com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT>

    @InternalApi
    public class ApiResultRetryAlgorithm<ResponseT>
    extends Object
    implements com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT>
    For internal use, public for technical reasons.
    • Field Detail

      • DEADLINE_SLEEP_DURATION

        public static final org.threeten.bp.Duration DEADLINE_SLEEP_DURATION
    • Method Detail

      • createNextAttempt

        public com.google.api.gax.retrying.TimedAttemptSettings createNextAttempt​(Throwable prevThrowable,
                                                                                  ResponseT prevResponse,
                                                                                  com.google.api.gax.retrying.TimedAttemptSettings prevSettings)
        Specified by:
        createNextAttempt in interface com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT>
      • shouldRetry

        public boolean shouldRetry​(Throwable prevThrowable,
                                   ResponseT prevResponse)
        Specified by:
        shouldRetry in interface com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT>