Class BatchSettings


  • public final class BatchSettings
    extends java.lang.Object
    Configurable settings for batch log record processors.
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • scheduleDelay

        public final java.time.Duration scheduleDelay
      • exporterTimeout

        public final java.time.Duration exporterTimeout
      • maxQueueSize

        public final int maxQueueSize
      • maxExportBatchSize

        public final int maxExportBatchSize
    • Constructor Detail

      • BatchSettings

        public BatchSettings​(java.time.Duration scheduleDelay,
                             java.time.Duration exporterTimeout,
                             int maxQueueSize,
                             int maxExportBatchSize)
    • 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 Config
        log - the Cinnamon Logger
        Returns:
        batch settings from config
      • toString

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