| Constructor and Description |
|---|
RestEmitter(RestEmitterConfig config)
The default constructor, prefer using the `create` factory method.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static RestEmitter |
create(java.util.function.Consumer<RestEmitterConfig.RestEmitterConfigBuilder> builderSupplier)
Constructing a REST Emitter follows a lambda-based fluent builder pattern using the `create` method.
|
static RestEmitter |
createWithDefaults()
Creates a RestEmitter with default settings.
|
java.util.concurrent.Future<MetadataWriteResponse> |
emit(java.util.List<UpsertAspectRequest> request,
Callback callback)
Asynchronously emit a
UpsertAspectRequest. |
java.util.concurrent.Future<MetadataWriteResponse> |
emit(com.linkedin.mxe.MetadataChangeProposal mcp,
Callback callback)
Asynchronously emit a
MetadataChangeProposal event. |
java.util.concurrent.Future<MetadataWriteResponse> |
emit(MetadataChangeProposalWrapper mcpw,
Callback callback)
Asynchronously emit a
MetadataChangeProposalWrapper event. |
boolean |
testConnection()
Test that the emitter can establish a valid connection to the DataHub platform
|
public RestEmitter(RestEmitterConfig config)
config - public static RestEmitter create(java.util.function.Consumer<RestEmitterConfig.RestEmitterConfigBuilder> builderSupplier)
builderSupplier - public static RestEmitter createWithDefaults()
public java.util.concurrent.Future<MetadataWriteResponse> emit(MetadataChangeProposalWrapper mcpw, Callback callback) throws java.io.IOException
EmitterMetadataChangeProposalWrapper event.public java.util.concurrent.Future<MetadataWriteResponse> emit(com.linkedin.mxe.MetadataChangeProposal mcp, Callback callback) throws java.io.IOException
EmitterMetadataChangeProposal event. Prefer using the sibling method
that accepts a MetadataChangeProposalWrapper event as those are friendlier to construct.public boolean testConnection()
throws java.io.IOException,
java.util.concurrent.ExecutionException,
java.lang.InterruptedException
EmittertestConnection in interface Emitterjava.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic java.util.concurrent.Future<MetadataWriteResponse> emit(java.util.List<UpsertAspectRequest> request, Callback callback) throws java.io.IOException
EmitterUpsertAspectRequest.