Class BatchSettings
- java.lang.Object
-
- com.lightbend.cinnamon.opentelemetry.logs.BatchSettings
-
public final class BatchSettings extends java.lang.Object
Configurable settings for batch log record processors.
-
-
Field Summary
Fields Modifier and Type Field Description java.time.Duration
exporterTimeout
int
maxExportBatchSize
int
maxQueueSize
java.time.Duration
scheduleDelay
-
Constructor Summary
Constructors Constructor Description BatchSettings(java.time.Duration scheduleDelay, java.time.Duration exporterTimeout, int maxQueueSize, int maxExportBatchSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BatchSettings
fromConfig(com.typesafe.config.Config config, Logger log)
Create batch log record processor settings from configuration.java.lang.String
toString()
-
-
-
Method Detail
-
fromConfig
public static BatchSettings fromConfig(com.typesafe.config.Config config, Logger log)
Create batch log record processor settings from configuration.- Parameters:
config
- the exporter section Configlog
- the Cinnamon Logger- Returns:
- batch settings from config
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-