Class RemoveFinishedPartitionOperation
java.lang.Object
io.debezium.connector.spanner.task.operation.RemoveFinishedPartitionOperation
- All Implemented Interfaces:
Operation
Remove finished partition from the task state, as it is not needed anymore
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SpannerConnectorConfigprivate booleanprivate static final org.slf4j.Loggerprivate final SpannerEventDispatcher -
Constructor Summary
ConstructorsConstructorDescriptionRemoveFinishedPartitionOperation(SpannerEventDispatcher spannerEventDispatcher, SpannerConnectorConfig spannerConnectorConfig) -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanallChildrenFinished(TaskSyncContext taskSyncContext, String token) doOperation(TaskSyncContext taskSyncContext) booleanprivate TaskSyncContextremoveFinishedPartitions(TaskSyncContext taskSyncContext)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
spannerEventDispatcher
-
connectorConfig
-
isRequiredPublishSyncEvent
private boolean isRequiredPublishSyncEvent
-
-
Constructor Details
-
RemoveFinishedPartitionOperation
public RemoveFinishedPartitionOperation(SpannerEventDispatcher spannerEventDispatcher, SpannerConnectorConfig spannerConnectorConfig)
-
-
Method Details
-
removeFinishedPartitions
-
allChildrenFinished
-
isRequiredPublishSyncEvent
public boolean isRequiredPublishSyncEvent()- Specified by:
isRequiredPublishSyncEventin interfaceOperation
-
doOperation
- Specified by:
doOperationin interfaceOperation
-