Interface RetryingContext (2.22.0)

publicinterface RetryingContext

Context for a retryable operation.

It provides state to individual RetryingFutures via the RetryingExecutor.

Methods

getRetrySettings()

publicabstractRetrySettingsgetRetrySettings()

Returns the RetrySettings to use with this context, or null if the default RetrySettings should be used.

Returns
Type Description

getRetryableCodes()

publicabstractSet<StatusCode.Code>getRetryableCodes()

Returns the retryable codes to use with this context, or null if the default retryable codes should be used.

Returns
Type Description

getTracer()

publicabstractApiTracergetTracer()

Returns the ApiTracer associated with the current operation.

Returns
Type Description

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 2025年11月19日 UTC.