Package com.github.loki4j.client.http
Interface Loki4jHttpClient
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
ApacheHttpClient,JavaHttpClient
public interface Loki4jHttpClient extends java.lang.AutoCloseableBasic interface that all Loki4j HTTP senders must implement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpConfiggetConfig()Get HTTP configuration for this clientLokiResponsesend(java.nio.ByteBuffer batch)Send a batch to Loki
-
-
-
Method Detail
-
getConfig
HttpConfig getConfig()
Get HTTP configuration for this client
-
send
LokiResponse send(java.nio.ByteBuffer batch) throws java.lang.Exception
Send a batch to Loki- Returns:
- A response from Loki
- Throws:
java.lang.Exception- If send was not successful
-
-