Methods
getTokenBalance()
Returns the current logical token balance (for testing/inspection).
refillTokenBucket()
Refills the token bucket after a successful publish batch.
tryAcquireHedgeToken()
Attempts to consume 1.0 token for a hedged request. Returns true if a token was available and consumed, false otherwise.
(static) resolveInitialRpcTimeout()
Resolves the effective initial RPC timeout Duration from CallOptions.
(static) resolveTotalTimeout()
Resolves the effective total timeout Duration from CallOptions.
(static) validateAndResolveHedgingOptions()
Validates user-supplied HedgingOptions, applies defaults, and verifies compatibility with messageOrdering and RPC/total timeouts.