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.abstract Predicate<IOException>Returns the predicate used to determine if an attempt which failed exceptionally should be retried, ornullif the exporter specific default predicate should be used.abstract RetryPolicy.RetryPolicyBuilderReturns aRetryPolicy.RetryPolicyBuilderreflecting configuration values for thisRetryPolicy.
-
Method Details
-
getDefault
Return the defaultRetryPolicy. -
builder
Returns a newRetryPolicy.RetryPolicyBuilderto construct aRetryPolicy. -
toBuilder
Returns aRetryPolicy.RetryPolicyBuilderreflecting 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. -
getRetryExceptionPredicate
Returns the predicate used to determine if an attempt which failed exceptionally should be retried, ornullif the exporter specific default predicate should be used.- Since:
- 1.47.0
-