- 2.70.0 (latest)
- 2.69.0
- 2.68.2
- 2.67.0
- 2.66.0
- 2.65.0
- 2.63.1
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.1
- 2.58.0
- 2.57.0
- 2.55.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.1
- 2.47.0
- 2.46.1
- 2.45.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.1
- 2.33.0
- 2.32.1
- 2.31.1
- 2.30.1
- 2.24.0
- 2.23.3
- 2.22.0
- 2.21.0
- 2.20.1
- 2.19.6
- 2.18.7
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.2
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.1
- 2.7.1
Package com.google.api.gax.retrying (2.39.0)
Settings Classes
Settings classes can be used to configure credentials, endpoints, and retry settings for a Client.
Settings | Description |
---|---|
com.google.api.gax.retrying.RetrySettings | Holds the parameters for retry
or poll
logic with jitter, timeout and exponential
backoff. Actual implementation of the logic is elsewhere. The intent of these settings is to be used with a call to a remote server, which could either |
com.google.api.gax.retrying.TimedAttemptSettings | Timed attempt execution settings. Defines time-specific properties of a retry attempt. |
Classes
Class | Description |
---|---|
com.google.api.gax.retrying.BasicResultRetryAlgorithm | A basic implementation of ResultRetryAlgorithm
. Using this implementation would mean that
all exceptions should be retried, all responses should be accepted (including null
) and
no retrying process should ever be canceled. |
com.google.api.gax.retrying.DirectRetryingExecutor | 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. This class is thread-safe. |
com.google.api.gax.retrying.ExponentialPollAlgorithm | The timed poll algorithm which uses jittered exponential backoff factor for calculating the next poll execution time and throws PollException in case if total timeout or total number of attempts is reached. |
com.google.api.gax.retrying.ExponentialRetryAlgorithm | The timed retry algorithm which uses jittered exponential backoff factor for calculating the next
attempt execution time. This class is thread-safe. |
com.google.api.gax.retrying.NonCancellableFuture | A future which cannot be cancelled from the external package. For internal use, public for technical reasons. |
com.google.api.gax.retrying.RetryAlgorithm | 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. This class is thread-safe. |
com.google.api.gax.retrying.RetrySettings.Builder | A base builder class for RetrySettings . See the class documentation of RetrySettings for a description of the different values that can be set. |
com.google.api.gax.retrying.ScheduledRetryingExecutor | The retry executor which uses ScheduledExecutorService
to schedule an attempt tasks. This implementation does not manage the lifecycle of the underlying ScheduledExecutorService , so it should be managed outside of this class (like calling the ScheduledExecutorService#shutdown() when the pool is not needed anymore). In a typical usage pattern there are usually multiple instances of this class sharing same instance of the |
com.google.api.gax.retrying.SimpleStreamResumptionStrategy | Simplest implementation of a StreamResumptionStrategy which returns the initial request for unstarted streams. |
com.google.api.gax.retrying.StreamingRetryAlgorithm | The streaming retry algorithm, which makes decision based either on the thrown exception and the
execution time settings of the previous attempt. This extends RetryAlgorithm
to take
additional information (provided by ServerStreamingAttemptCallable
) into account. |
com.google.api.gax.retrying.TimedAttemptSettings.Builder |
Interfaces
It provides state to individual RetryingFuture s via the RetryingExecutor .
- Creating first attempt RetryingFuture , which acts as a facade, hiding from client
This interface is for advanced/internal use only.
Implementations don't have to be threadsafe because all of the calls will be serialized.
Exceptions
Exception | Description |
---|---|
com.google.api.gax.retrying.PollException | PollException
is thrown when polling algorithm exceeds total timeout or total number of
attempts. |
com.google.api.gax.retrying.ServerStreamingAttemptException | A wrapper exception thrown by ServerStreamingAttemptCallable
to communicate additional
context to the StreamingRetryAlgorithm
and to pass the original cancellation stack trace
to RetryingServerStreamingCallable
. |