Operation timed polling algorithm, which uses exponential backoff factor for determining when the
next polling operation should be executed. If the polling exceeds the total timeout this
algorithm cancels polling.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `OperationTimedPollAlgorithm` class, which is a part of the Google Cloud API Client Libraries for Java (gax) and extends `ExponentialRetryAlgorithm`."],["The `OperationTimedPollAlgorithm` class implements an exponential backoff strategy for determining the timing of the next polling operation, canceling polling when a timeout is exceeded."],["The page lists numerous versions of the `OperationTimedPollAlgorithm` class, from version 2.63.1 (latest) down to 2.7.1, all having specific URLs where you can access their details."],["The class offers two static methods for creation: `create(RetrySettings globalSettings)` which uses a default clock and `create(RetrySettings globalSettings, ApiClock clock)` which takes a specific clock."],["`OperationTimedPollAlgorithm` overrides `shouldRPCTerminate(long timeLeftMs)` and `shouldRetry(TimedAttemptSettings nextAttemptSettings)` from `ExponentialRetryAlgorithm`, where `shouldRetry` determines if another poll should occur or throws a `CancellationException`."]]],[]]