Package io.openlineage.client.transports
Class HttpTransport
java.lang.Object
io.openlineage.client.transports.Transport
io.openlineage.client.transports.HttpTransport
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionHttpTransport
(@NonNull HttpConfig httpConfig) HttpTransport
(@NonNull org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient, @NonNull HttpConfig httpConfig) -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpTransport.Builder
builder()
void
close()
void
emit
(OpenLineage.DatasetEvent datasetEvent) void
emit
(OpenLineage.JobEvent jobEvent) void
emit
(OpenLineage.RunEvent runEvent)
-
Constructor Details
-
HttpTransport
-
HttpTransport
public HttpTransport(@NonNull @NonNull org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient, @NonNull @NonNull HttpConfig httpConfig)
-
-
Method Details
-
emit
-
emit
-
emit
-
close
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classTransport
- Throws:
IOException
-
builder
- Returns:
- an new
HttpTransport.Builder
object for buildingHttpTransport
s.
-
HttpConfig
instead