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-15 UTC."],[[["\u003cp\u003eThis document outlines the \u003ccode\u003eTimedAttemptSettings\u003c/code\u003e class, which controls time-specific aspects of retry attempts in Java.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTimedAttemptSettings\u003c/code\u003e class is an abstract class and inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, with a list of inherited members from its parent class.\u003c/p\u003e\n"],["\u003cp\u003eThe document provides access to numerous previous versions of the documentation, starting from version 2.63.1 and going down to version 2.7.1, all relating to \u003ccode\u003eTimedAttemptSettings\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTimedAttemptSettings\u003c/code\u003e can be used with static methods like \u003ccode\u003enewBuilder()\u003c/code\u003e to create builder objects, and contains various methods such as \u003ccode\u003egetAttemptCount()\u003c/code\u003e, \u003ccode\u003egetGlobalSettings()\u003c/code\u003e, \u003ccode\u003egetRetryDelay()\u003c/code\u003e and more for controlling retry behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetAttemptCount()\u003c/code\u003e and \u003ccode\u003egetOverallAttemptCount()\u003c/code\u003e methods provide information on attempt counts, and they differentiate between streamed and unary RPCs, where streamed RPCs reset after each successful message.\u003c/p\u003e\n"]]],[],null,[]]