Package com.github.loki4j.logback
Class ApacheHttpSender
- java.lang.Object
-
- com.github.loki4j.logback.ApacheHttpSender
-
- All Implemented Interfaces:
HttpSender
public class ApacheHttpSender extends java.lang.Object implements HttpSender
A configurator forApacheHttpClient
-
-
Constructor Summary
Constructors Constructor Description ApacheHttpSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpConfig.BuildergetConfig()java.util.function.Function<HttpConfig,Loki4jHttpClient>getHttpClientFactory()voidsetConnectionKeepAliveMs(long connectionKeepAliveMs)voidsetMaxConnections(int maxConnections)
-
-
-
Method Detail
-
setMaxConnections
public void setMaxConnections(int maxConnections)
-
setConnectionKeepAliveMs
public void setConnectionKeepAliveMs(long connectionKeepAliveMs)
-
getConfig
public HttpConfig.Builder getConfig()
- Specified by:
getConfigin interfaceHttpSender
-
getHttpClientFactory
public java.util.function.Function<HttpConfig,Loki4jHttpClient> getHttpClientFactory()
- Specified by:
getHttpClientFactoryin interfaceHttpSender
-
-