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()
void
close()
void
emit(OpenLineage.DatasetEvent datasetEvent)
void
emit(OpenLineage.JobEvent jobEvent)
void
emit(OpenLineage.RunEvent runEvent)
-
-
-
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)
-
emit
public void emit(@NonNull OpenLineage.DatasetEvent datasetEvent)
-
emit
public void emit(@NonNull OpenLineage.JobEvent jobEvent)
-
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 new
HttpTransport.Builder
object for buildingHttpTransport
s.
-
-