The attempt count. It is a zero-based value (first attempt will have this value set to 0). For
streamed RPCs this will be reset after every successful message.
The overall attempt count. It is a zero-based value (first attempt will have this value set to
0). This will be the sum of all attempt counts for a streaming RPC and will be equal to #getAttemptCount() for unary RPCs.
Returns randomized attempt delay. By default this value is calculated based on the
retryDelay value, and is used as the actual attempt execution delay.
Returns
Type
Description
org.threeten.bp.Duration
getRetryDelay()
publicabstractDurationgetRetryDelay()
Returns the calculated retry delay. Note that the actual delay used for retry scheduling may be
different (randomized, based on this value).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-01 UTC."],[[["This document outlines the `TimedAttemptSettings` class in the Google API Client Library for Java, used to configure time-specific properties for retrying operations."],["The latest version available is 2.63.1, with a list of previous versions ranging down to 2.7.1, each linking to the `TimedAttemptSettings` documentation for that specific version."],["The `TimedAttemptSettings` class provides methods to retrieve attempt counts, start time, global retry settings, overall attempt count, randomized retry delay, retry delay, and RPC timeout."],["The class also includes methods to create a new builder (`newBuilder()`) and to create a builder based on the current settings (`toBuilder()`), which can be used to modify retry settings."],["It inherits several methods from `java.lang.Object`, such as `clone()`, `equals()`, and `hashCode()`."]]],[]]