Package com.google.api.gax.retrying
Interface RetryingContext
- All Known Subinterfaces:
ApiCallContext
@NullMarked
@BetaApi("The surface for passing per operation state is not yet stable")
public interface RetryingContext
Context for a retryable operation.
It provides state to individual RetryingFutures via the RetryingExecutor.
-
Method Summary
Modifier and TypeMethodDescription@Nullable Set<StatusCode.Code>Returns the retryable codes to use with this context, ornullif the default retryable codes should be used.@Nullable RetrySettingsReturns theRetrySettingsto use with this context, ornullif the defaultRetrySettingsshould be used.Returns theApiTracerassociated with the current operation.
-
Method Details
-
getTracer
Returns theApiTracerassociated with the current operation. -
getRetrySettings
@Nullable RetrySettings getRetrySettings()Returns theRetrySettingsto use with this context, ornullif the defaultRetrySettingsshould be used. -
getRetryableCodes
@Nullable Set<StatusCode.Code> getRetryableCodes()Returns the retryable codes to use with this context, ornullif the default retryable codes should be used.
-