Class ApacheHttpSender

  • All Implemented Interfaces:
    ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle, HttpSender

    public class ApacheHttpSender
    extends AbstractHttpSender
    Loki sender that is backed by Apache HttpClient
    • Constructor Detail

      • ApacheHttpSender

        public ApacheHttpSender()
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        start in class AbstractHttpSender
      • stop

        public void stop()
        Specified by:
        stop in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        stop in class AbstractHttpSender
      • send

        public LokiResponse send​(java.nio.ByteBuffer batch)
        Description copied from interface: HttpSender
        Send a batch to Loki
        Returns:
        A response from Loki
      • setMaxConnections

        public void setMaxConnections​(int maxConnections)
      • setConnectionKeepAliveMs

        public void setConnectionKeepAliveMs​(long connectionKeepAliveMs)