Skip to content

Commit

Permalink
MongoSourceConnector: Indicate exactly-once support
Browse files Browse the repository at this point in the history
  • Loading branch information
tysonmote committed Aug 5, 2023
1 parent fb55712 commit 6deb326
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.apache.kafka.common.config.Config;
import org.apache.kafka.common.config.ConfigDef;
import org.apache.kafka.connect.connector.Task;
import org.apache.kafka.connect.source.ExactlyOnceSupport;
import org.apache.kafka.connect.source.SourceConnector;

import com.mongodb.kafka.connect.source.MongoSourceConfig;
Expand Down Expand Up @@ -100,4 +101,9 @@ public ConfigDef config() {
public String version() {
return Versions.VERSION;
}

@Override
public ExactlyOnceSupport exactlyOnceSupport(final Map<String, String> connectorConfig) {
return ExactlyOnceSupport.SUPPORTED;
}
}

0 comments on commit 6deb326

Please sign in to comment.