Package io.openlineage.client.transports
Class HttpTransport
- java.lang.Object
-
- io.openlineage.client.transports.Transport
-
- io.openlineage.client.transports.HttpTransport
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public final class HttpTransport extends Transport implements java.io.Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpTransport.Builder
Deprecated.UseHttpConfig
instead
-
Constructor Summary
Constructors Constructor Description HttpTransport(@NonNull HttpConfig httpConfig)
HttpTransport(@NonNull org.apache.http.impl.client.CloseableHttpClient httpClient, @NonNull HttpConfig httpConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpTransport.Builder
builder()
Returns an newHttpTransport.Builder
object for buildingHttpTransport
s.void
close()
void
emit(OpenLineage.RunEvent runEvent)
void
emit(java.lang.String eventAsJson)
-
-
-
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(@NonNull OpenLineage.RunEvent runEvent)
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
builder
public static HttpTransport.Builder builder()
Returns an newHttpTransport.Builder
object for buildingHttpTransport
s.
-
-