Class MongoDbConnectorTask

  • All Implemented Interfaces:
    org.apache.kafka.connect.connector.Task

    @ThreadSafe
    public final class MongoDbConnectorTask
    extends BaseSourceTask<MongoDbPartition,​MongoDbOffsetContext>
    A Kafka Connect source task that replicates the changes from one or more MongoDB replica sets.

    Generally, the MongoDbConnector assigns each replica set to a separate task, although multiple replica sets will be assigned to each task when the maximum number of tasks is limited. Regardless, every task will use a separate thread to replicate the contents of each replica set, and each replication thread may use multiple threads to perform an initial sync of the replica set.

    Author:
    Randall Hauch
    See Also:
    MongoDbConnector, MongoDbConnectorConfig