@ThreadSafe
public interface Emitter
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<MetadataWriteResponse> |
emit(java.util.List<UpsertAspectRequest> request,
Callback callback)
Asynchronously emit a
UpsertAspectRequest. |
default java.util.concurrent.Future<MetadataWriteResponse> |
emit(com.linkedin.mxe.MetadataChangeProposal mcp)
Asynchronously emit a
MetadataChangeProposal event. |
java.util.concurrent.Future<MetadataWriteResponse> |
emit(com.linkedin.mxe.MetadataChangeProposal mcp,
Callback callback)
Asynchronously emit a
MetadataChangeProposal event. |
default java.util.concurrent.Future<MetadataWriteResponse> |
emit(MetadataChangeProposalWrapper mcpw)
Asynchronously emit a
MetadataChangeProposalWrapper 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
|
java.util.concurrent.Future<MetadataWriteResponse> emit(@Nonnull MetadataChangeProposalWrapper mcpw, Callback callback) throws java.io.IOException
MetadataChangeProposalWrapper event.mcpw - callback - if not null, is called from the IO thread. Should be a quick operation.Future for callers to inspect the result of the operation or block until one is availablejava.io.IOExceptiondefault java.util.concurrent.Future<MetadataWriteResponse> emit(@Nonnull MetadataChangeProposalWrapper mcpw) throws java.io.IOException
MetadataChangeProposalWrapper event.mcpw - Future for callers to inspect the result of the operation or block until one is availablejava.io.IOExceptionjava.util.concurrent.Future<MetadataWriteResponse> emit(@Nonnull com.linkedin.mxe.MetadataChangeProposal mcp, Callback callback) throws java.io.IOException
MetadataChangeProposal event. Prefer using the sibling method
that accepts a MetadataChangeProposalWrapper event as those are friendlier to construct.mcp - callback - if not null, is called from the IO thread. Should be a quick operation.Future for callers to inspect the result of the operation or block until one is availablejava.io.IOExceptiondefault java.util.concurrent.Future<MetadataWriteResponse> emit(@Nonnull com.linkedin.mxe.MetadataChangeProposal mcp) throws java.io.IOException
MetadataChangeProposal event. Prefer using the sibling method
that accepts a MetadataChangeProposalWrapper event as those are friendlier to construct.mcp - Future for callers to inspect the result of the operation or block until one is availablejava.io.IOExceptionboolean testConnection()
throws java.io.IOException,
java.util.concurrent.ExecutionException,
java.lang.InterruptedException
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionjava.util.concurrent.Future<MetadataWriteResponse> emit(java.util.List<UpsertAspectRequest> request, Callback callback) throws java.io.IOException
UpsertAspectRequest.request - request with with metadata aspect to upsert into DataHubFuture for callers to inspect the result of the operation or block until one is availablejava.io.IOException