Package io.debezium.connector.mongodb
Class MongoDbChangeEventSourceFactory
- java.lang.Object
-
- io.debezium.connector.mongodb.MongoDbChangeEventSourceFactory
-
- All Implemented Interfaces:
ChangeEventSourceFactory<MongoDbPartition,MongoDbOffsetContext>
public class MongoDbChangeEventSourceFactory extends Object implements ChangeEventSourceFactory<MongoDbPartition,MongoDbOffsetContext>
Factory for creatingChangeEventSources specific for the MongoDb connector.- Author:
- Chris Cranford
-
-
Field Summary
Fields Modifier and Type Field Description private Clockclockprivate MongoDbConnectorConfigconfigurationprivate EventDispatcher<CollectionId>dispatcherprivate ErrorHandlererrorHandlerprivate ReplicaSetsreplicaSetsprivate MongoDbTaskContexttaskContext
-
Constructor Summary
Constructors Constructor Description MongoDbChangeEventSourceFactory(MongoDbConnectorConfig configuration, ErrorHandler errorHandler, EventDispatcher<CollectionId> dispatcher, Clock clock, ReplicaSets replicaSets, MongoDbTaskContext taskContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotChangeEventSource<MongoDbPartition,MongoDbOffsetContext>getSnapshotChangeEventSource(SnapshotProgressListener snapshotProgressListener)StreamingChangeEventSource<MongoDbPartition,MongoDbOffsetContext>getStreamingChangeEventSource()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.debezium.pipeline.source.spi.ChangeEventSourceFactory
getIncrementalSnapshotChangeEventSource
-
-
-
-
Field Detail
-
configuration
private final MongoDbConnectorConfig configuration
-
errorHandler
private final ErrorHandler errorHandler
-
dispatcher
private final EventDispatcher<CollectionId> dispatcher
-
clock
private final Clock clock
-
replicaSets
private final ReplicaSets replicaSets
-
taskContext
private final MongoDbTaskContext taskContext
-
-
Constructor Detail
-
MongoDbChangeEventSourceFactory
public MongoDbChangeEventSourceFactory(MongoDbConnectorConfig configuration, ErrorHandler errorHandler, EventDispatcher<CollectionId> dispatcher, Clock clock, ReplicaSets replicaSets, MongoDbTaskContext taskContext)
-
-
Method Detail
-
getSnapshotChangeEventSource
public SnapshotChangeEventSource<MongoDbPartition,MongoDbOffsetContext> getSnapshotChangeEventSource(SnapshotProgressListener snapshotProgressListener)
- Specified by:
getSnapshotChangeEventSourcein interfaceChangeEventSourceFactory<MongoDbPartition,MongoDbOffsetContext>
-
getStreamingChangeEventSource
public StreamingChangeEventSource<MongoDbPartition,MongoDbOffsetContext> getStreamingChangeEventSource()
- Specified by:
getStreamingChangeEventSourcein interfaceChangeEventSourceFactory<MongoDbPartition,MongoDbOffsetContext>
-
-