Package com.google.api.gax.retrying
Interface RetryingContext
-
- All Known Subinterfaces:
ApiCallContext
@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 theRetryingExecutor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<StatusCode.Code>getRetryableCodes()Returns the retryable codes to use with this context, ornullif the default retryable codes should be used.RetrySettingsgetRetrySettings()Returns theRetrySettingsto use with this context, ornullif the defaultRetrySettingsshould be used.ApiTracergetTracer()Returns theApiTracerassociated with the current operation.
-
-
-
Method Detail
-
getTracer
@Nonnull ApiTracer 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.
-
-