Interface Loki4jHttpClient

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    ApacheHttpClient, JavaHttpClient

    public interface Loki4jHttpClient
    extends java.lang.AutoCloseable
    Basic interface that all Loki4j HTTP senders must implement.
    • 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