@BetaApi(value="The surface for passing per operation state is not yet stable")
public interface RetryingContext
It provides state to individual RetryingFutures via the RetryingExecutor.
| Modifier and Type | Method and Description |
|---|---|
Set<StatusCode.Code> |
getRetryableCodes()
Returns the retryable codes to use with this context, or
null if the default
retryable codes should be used. |
RetrySettings |
getRetrySettings()
Returns the
RetrySettings to use with this context, or null if the default
RetrySettings should be used. |
ApiTracer |
getTracer()
Returns the
ApiTracer associated with the current operation. |
@Nonnull ApiTracer getTracer()
ApiTracer associated with the current operation.@Nullable RetrySettings getRetrySettings()
RetrySettings to use with this context, or null if the default
RetrySettings should be used.@Nullable Set<StatusCode.Code> getRetryableCodes()
null if the default
retryable codes should be used.