Package com.google.api.gax.retrying
package com.google.api.gax.retrying
-
ClassDescriptionBasicResultRetryAlgorithm<ResponseT>A basic implementation of
ResultRetryAlgorithm
.DirectRetryingExecutor<ResponseT>The retry executor which executes attempts in the current thread, potentially causing the current thread to sleep for the specified amount of time before execution.The timed poll algorithm which uses jittered exponential backoff factor for calculating the next poll execution time and throwsPollException
in case if total timeout or total number of attempts is reached.The timed retry algorithm which uses jittered exponential backoff factor for calculating the next attempt execution time.NonCancellableFuture<ResponseT>A future which cannot be cancelled from the external package.PollException
is thrown when polling algorithm exceeds total timeout or total number of attempts.ResultRetryAlgorithm<ResponseT>Same asResultRetryAlgorithmWithContext
, but without methods that accept aRetryingContext
.ResultRetryAlgorithmWithContext<ResponseT>A result retry algorithm is responsible for the following operations (based on the response returned by the previous attempt or on the thrown exception): Accepting a task for retry so another attempt will be made.RetryAlgorithm<ResponseT>The retry algorithm, which makes decision based either on the thrown exception or the returned response, and the execution time settings of the previous attempt.Context for a retryable operation.RetryingExecutor<ResponseT>A retrying executor is responsible for the following operations: Creating first attemptRetryingFuture
, which acts as a facade, hiding from client code the actual execution of scheduled retry attempts.RetryingExecutorWithContext<ResponseT>ARetryingExecutor
that accepts a per-operation context.RetryingFuture<ResponseT>Represents a retrying future.Holds the parameters for retry or poll logic with jitter, timeout and exponential backoff.A base builder class forRetrySettings
.ScheduledRetryingExecutor<ResponseT>The retry executor which usesScheduledExecutorService
to schedule an attempt tasks.A wrapper exception thrown byServerStreamingAttemptCallable
to communicate additional context to theStreamingRetryAlgorithm
and to pass the original cancellation stack trace toRetryingServerStreamingCallable
.SimpleStreamResumptionStrategy<RequestT,ResponseT> Simplest implementation of aStreamResumptionStrategy
which returns the initial request for unstarted streams.StreamingRetryAlgorithm<ResponseT>The streaming retry algorithm, which makes decision based either on the thrown exception and the execution time settings of the previous attempt.StreamResumptionStrategy<RequestT,ResponseT> This is part of the server streaming retry api.Timed attempt execution settings.Same asTimedRetryAlgorithmWithContext
, but without methods that accept aRetryingContext
.A timed retry algorithm is responsible for the following operations, based on the previous attempt settings and current time: Creating first attemptTimedAttemptSettings
.