Package io.debezium.connector.mongodb
Class MongoDbTaskContext
java.lang.Object
io.debezium.connector.common.CdcSourceTaskContext
io.debezium.connector.mongodb.MongoDbTaskContext
- Author:
- Randall Hauch
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Configurationprivate final MongoDbConnectorConfigprivate final Filtersprivate final Stringprivate final io.debezium.spi.topic.TopicNamingStrategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides the capture mode used by connector runtime.getConnection(EventDispatcher<MongoDbPartition, CollectionId> dispatcher, MongoDbPartition partition) Obtains instances ofMongoDbConnectionwhich should be used in event sourcesio.debezium.spi.topic.TopicNamingStrategy<CollectionId>Methods inherited from class io.debezium.connector.common.CdcSourceTaskContext
capturedDataCollections, configureLoggingContext, configureLoggingContext, getClock, getConnectorName, getConnectorType, getCustomMetricTags, getTaskId, temporaryLoggingContext
-
Field Details
-
filters
-
topicNamingStrategy
private final io.debezium.spi.topic.TopicNamingStrategy topicNamingStrategy -
serverName
-
connectorConfig
-
config
-
-
Constructor Details
-
MongoDbTaskContext
- Parameters:
config- the configuration
-
-
Method Details
-
getTopicNamingStrategy
-
getFilters
-
getServerName
-
getConnectorConfig
-
getCaptureMode
Provides the capture mode used by connector runtime. This value can differ from requested configured value as the offsets stored might be created by a different capture mode. In this case the configured value is overridden and the mode previously used is restored.- Returns:
- effectively used capture mode
-
getConnection
public MongoDbConnection getConnection(EventDispatcher<MongoDbPartition, CollectionId> dispatcher, MongoDbPartition partition) Obtains instances ofMongoDbConnectionwhich should be used in event sources- Parameters:
dispatcher- event dispatcherpartition- MongoDB partition- Returns:
- instance of
MongoDbConnection
-