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 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 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"]],[["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-08-27 UTC."],[],[],null,["A retry policy for [`ConfigConnection`](/cpp/docs/reference/cloudsecuritycompliance/latest/classgoogle_1_1cloud_1_1cloudsecuritycompliance__v1_1_1ConfigConnection) based on elapsed time. \nThis policy stops retrying if:\n\n- An RPC returns a non-transient error.\n- The elapsed time in the retry loop exceeds a prescribed duration.\n\nIn this class the following status codes are treated as transient errors:\n\n- [`kUnavailable`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud_1a90e17f75452470f0f3ee1a06ffe58847.html)\n\nConstructors\n\nConfigLimitedTimeRetryPolicy(std::chrono::duration\\\u003c DurationRep, DurationPeriod \\\u003e) \nConstructor given a `std::chrono::duration\u003c\u003e` object. \n\nSee Also\n\n\u003chttps://en.cppreference.com/w/cpp/chrono/duration\u003e for more information about `std::chrono::duration`.\n\n| **Parameters** ||\n|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Name** | **Description** |\n| `maximum_duration` | `std::chrono::duration\u003c DurationRep, DurationPeriod \u003e` 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. |\n| `typename DurationRep` | a placeholder to match the `Rep` tparam for `duration's` type. The semantics of this template parameter are documented in `std::chrono::duration\u003c\u003e`. In brief, the underlying arithmetic type used to store the number of ticks. For our purposes it is simply a formal parameter. |\n| `typename DurationPeriod` | a placeholder to match the `Period` tparam for `duration's` type. The semantics of this template parameter are documented in `std::chrono::duration\u003c\u003e`. In brief, the length of the tick in seconds, expressed as a `std::ratio\u003c\u003e`. For our purposes it is simply a formal parameter. |\n\nConfigLimitedTimeRetryPolicy(ConfigLimitedTimeRetryPolicy \\&\\&)\n\n| **Parameter** ||\n|----------|-----------------------------------|\n| **Name** | **Description** |\n| `rhs` | `ConfigLimitedTimeRetryPolicy &&` |\n\nConfigLimitedTimeRetryPolicy(ConfigLimitedTimeRetryPolicy const \\&)\n\n| **Parameter** ||\n|----------|----------------------------------------|\n| **Name** | **Description** |\n| `rhs` | `ConfigLimitedTimeRetryPolicy const &` |\n\nFunctions\n\nmaximum_duration() const\n\n| **Returns** ||\n|---------------------------|-----------------|\n| **Type** | **Description** |\n| std::chrono::milliseconds | |\n\nvirtual OnFailure(Status const \\&)\n\n| **Parameter** ||\n|----------|------------------|\n| **Name** | **Description** |\n| `status` | `Status const &` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| bool | |\n\nvirtual IsExhausted() const\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| bool | |\n\nvirtual IsPermanentFailure(Status const \\&) const\n\n| **Parameter** ||\n|----------|------------------|\n| **Name** | **Description** |\n| `status` | `Status const &` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| bool | |\n\nvirtual clone() const \nCreates a new instance of the policy, reset to the initial state.\n\n| **Returns** ||\n|--------------------------------------|-----------------|\n| **Type** | **Description** |\n| std::unique_ptr\u003c ConfigRetryPolicy \u003e | |\n\nType Aliases\n\nBaseType \n**Alias Of** : `ConfigRetryPolicy`"]]