@Internal @NotThreadSafe public class SchemaRegistryRequestHandler extends Object implements Closeable
SchemaRegistry.| Constructor and Description |
|---|
SchemaRegistryRequestHandler(org.apache.flink.cdc.common.sink.MetadataApplier metadataApplier,
SchemaManager schemaManager,
SchemaDerivation schemaDerivation) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flushSuccess(org.apache.flink.cdc.common.event.TableId tableId,
int sinkSubtask)
Record flushed sink subtasks after receiving FlushSuccessEvent.
|
CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> |
getSchemaChangeResult() |
CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> |
handleReleaseUpstreamRequest()
Handle the
ReleaseUpstreamRequest and wait for all sink subtasks flushing. |
CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> |
handleSchemaChangeRequest(SchemaChangeRequest request)
Handle the
SchemaChangeRequest and wait for all sink subtasks flushing. |
CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> |
refreshPendingLists() |
void |
registerSinkWriter(int sinkSubtask)
Register a sink subtask.
|
public SchemaRegistryRequestHandler(org.apache.flink.cdc.common.sink.MetadataApplier metadataApplier,
SchemaManager schemaManager,
SchemaDerivation schemaDerivation)
public CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> handleSchemaChangeRequest(SchemaChangeRequest request)
SchemaChangeRequest and wait for all sink subtasks flushing.request - the received SchemaChangeRequestpublic CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> handleReleaseUpstreamRequest()
ReleaseUpstreamRequest and wait for all sink subtasks flushing.public void registerSinkWriter(int sinkSubtask)
sinkSubtask - the sink subtask to registerpublic void flushSuccess(org.apache.flink.cdc.common.event.TableId tableId,
int sinkSubtask)
throws InterruptedException
tableId - the subtask in SchemaOperator and table that the FlushEvent is aboutsinkSubtask - the sink subtask succeed flushingInterruptedExceptionpublic CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> refreshPendingLists()
public CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> getSchemaChangeResult()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.