Package io.openlineage.client.transports
Class HttpTransport
java.lang.Object
io.openlineage.client.transports.Transport
io.openlineage.client.transports.HttpTransport
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionHttpTransport
(@NonNull HttpConfig httpConfig) HttpTransport
(@NonNull org.apache.http.impl.client.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.http.impl.client.CloseableHttpClient httpClient, @NonNull @NonNull HttpConfig httpConfig)
-
-
Method Details
-
emit
-
emit
-
emit
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
builder
- Returns:
- an new
HttpTransport.Builder
object for buildingHttpTransport
s.
-
HttpConfig
instead