Send feedback
Class HedgingSettings (1.157.0)
Stay organized with collections
Save and categorize content based on your preferences.
1.157.0 (latest)
1.153.0
1.152.0
1.151.0
1.150.1
1.149.0
1.148.0
1.147.0
1.145.0
1.143.1
1.142.0
1.141.5
1.140.2
1.139.4
1.138.0
1.137.1
1.136.1
1.135.0
1.134.2
1.133.1
1.132.2
1.131.0
1.130.0
1.129.6
1.127.3
1.126.6
1.125.13
1.123.18
1.122.2
1.121.1
1.120.24
1.119.1
1.118.0
1.117.0
1.116.4
1.115.5
public final class HedgingSettings
Settings for configuring publish hedging.
Static Methods
newBuilder()
public static HedgingSettings . Builder newBuilder ()
Returns a new builder for HedgingSettings.
Methods
getHedgeDelay()
public Duration getHedgeDelay ()
Returns the configured hedging delay.
Returns
Type
Description
Duration
the hedging delay.
getMaxTokens()
public int getMaxTokens ()
Returns the maximum number of tokens in the token bucket rate limiter.
Returns
Type
Description
int
the max tokens.
getRefillRatio()
public float getRefillRatio ()
Returns the token bucket refill ratio per successful request.
Returns
Type
Description
float
the refill ratio.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-10-06 UTC.
Need to tell us more?
[[["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 2026-10-06 UTC."],[],[]]