the maximum time allowed before the policy expires, while the application can express this time in any units they desire, the class truncates to milliseconds.
typename DurationRep
a placeholder to match the Rep tparam for maximum_duration's type. The semantics of this template parameter are documented in std::chrono::duration<>. In brief, the underlying arithmetic type used to store the number of ticks. For our purposes it is simply a formal parameter.
typename DurationPeriod
a placeholder to match the Period tparam for maximum_duration's type. The semantics of this template parameter are documented in std::chrono::duration<>. In brief, the length of the tick in seconds, expressed as a std::ratio<>. For our purposes it is simply a formal parameter.
[[["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-07 UTC."],[[["This document outlines the `LimitedTimeRetryPolicy` class, which controls retries based on elapsed time in C++ for Google Cloud Pub/Sub."],["The `LimitedTimeRetryPolicy` will cease retries if an RPC returns a non-transient error or if the retry loop's elapsed time exceeds the defined `maximum_duration`."],["Transient errors handled by this policy include `kAborted`, `kInternal`, `kUnavailable`, and `kResourceExhausted` status codes."],["The policy's constructor accepts a `std::chrono::duration\u003c\u003e` object, allowing the setting of a `maximum_duration` for retries, truncated to milliseconds, and the document includes details about how the policy interacts with `std::chrono::duration`."],["The document provides details for various constructors, functions, and type aliases, with information about parameters and return types, such as the function `clone() const` that can be used to create a fresh instance of the policy."]]],[]]