Class OtlpExporterSettings.RetryPolicySettings
- java.lang.Object
-
- com.lightbend.cinnamon.opentelemetry.OtlpExporterSettings.RetryPolicySettings
-
- Enclosing class:
- OtlpExporterSettings
public static final class OtlpExporterSettings.RetryPolicySettings extends java.lang.Object
Configurable retry policy settings for OTLP-based exporters.
-
-
Field Summary
Fields Modifier and Type Field Description double
backoffMultiplier
java.time.Duration
initialBackoff
int
maxAttempts
java.time.Duration
maxBackoff
-
Constructor Summary
Constructors Constructor Description RetryPolicySettings(int maxAttempts, java.time.Duration initialBackoff, java.time.Duration maxBackoff, double backoffMultiplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<OtlpExporterSettings.RetryPolicySettings>
fromConfig(com.typesafe.config.Config exporterConfig, Logger log)
Create optional retry policy settings from configuration.java.lang.String
toString()
-
-
-
Method Detail
-
fromConfig
public static java.util.Optional<OtlpExporterSettings.RetryPolicySettings> fromConfig(com.typesafe.config.Config exporterConfig, Logger log)
Create optional retry policy settings from configuration.- Parameters:
exporterConfig
- the exporter section Configlog
- the Cinnamon Logger- Returns:
- retry policy settings from config (optional, if enabled)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-