Class RetryPolicy
java.lang.Object
io.opentelemetry.sdk.common.export.RetryPolicy
Configuration for exporter exponential retry policy.
- Since:
- 1.28.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns a newRetryPolicy.RetryPolicyBuilderto construct aRetryPolicy.abstract doubleReturns the backoff multiplier.static RetryPolicyReturn the defaultRetryPolicy.abstract DurationReturns the initial backoff.abstract intReturns the max number of attempts, including the original request.abstract DurationReturns the max backoff.
-
Method Details
-
getDefault
Return the defaultRetryPolicy. -
builder
Returns a newRetryPolicy.RetryPolicyBuilderto construct aRetryPolicy. -
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.
-