Class RetryPolicy
java.lang.Object
io.opentelemetry.sdk.common.export.RetryPolicy
Configuration for exporter exponential retry policy.
- Since:
- 1.28.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns a newRetryPolicy.RetryPolicyBuilder
to construct aRetryPolicy
.abstract double
Returns the backoff multiplier.static RetryPolicy
Return the defaultRetryPolicy
.abstract Duration
Returns the initial backoff.abstract int
Returns the max number of attempts, including the original request.abstract Duration
Returns the max backoff.abstract RetryPolicy.RetryPolicyBuilder
Returns aRetryPolicy.RetryPolicyBuilder
reflecting configuration values for thisRetryPolicy
.
-
Method Details
-
getDefault
Return the defaultRetryPolicy
. -
builder
Returns a newRetryPolicy.RetryPolicyBuilder
to construct aRetryPolicy
. -
toBuilder
Returns aRetryPolicy.RetryPolicyBuilder
reflecting configuration values for thisRetryPolicy
.- Since:
- 1.29.0
-
getMaxAttempts
public abstract int getMaxAttempts()Returns the max number of attempts, including the original request. -
getInitialBackoff
Returns the initial backoff. -
getMaxBackoff
Returns the max backoff. -
getBackoffMultiplier
public abstract double getBackoffMultiplier()Returns the backoff multiplier.
-