Class OtlpExporterSettings.RetryPolicySettings

  • Enclosing class:
    OtlpExporterSettings

    public static final class OtlpExporterSettings.RetryPolicySettings
    extends java.lang.Object
    Configurable retry policy settings for OTLP-based exporters.
    • Field Detail

      • maxAttempts

        public final int maxAttempts
      • initialBackoff

        public final java.time.Duration initialBackoff
      • maxBackoff

        public final java.time.Duration maxBackoff
      • backoffMultiplier

        public final double backoffMultiplier
    • Constructor Detail

      • RetryPolicySettings

        public RetryPolicySettings​(int maxAttempts,
                                   java.time.Duration initialBackoff,
                                   java.time.Duration maxBackoff,
                                   double backoffMultiplier)
    • 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 Config
        log - the Cinnamon Logger
        Returns:
        retry policy settings from config (optional, if enabled)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object