Class HttpTransport

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public final class HttpTransport
    extends Transport
    implements java.io.Closeable
    • Constructor Detail

      • HttpTransport

        public HttpTransport​(@NonNull
                             @NonNull HttpConfig httpConfig)
      • HttpTransport

        public HttpTransport​(@NonNull
                             @NonNull org.apache.http.impl.client.CloseableHttpClient httpClient,
                             @NonNull
                             @NonNull HttpConfig httpConfig)
    • Method Detail

      • emit

        public void emit​(java.lang.String eventAsJson)
        Overrides:
        emit in class Transport
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException