Package io.debezium.engine.source
Class EngineSourceTaskContext
java.lang.Object
io.debezium.engine.source.EngineSourceTaskContext
- All Implemented Interfaces:
DebeziumSourceTaskContext,org.apache.kafka.connect.source.SourceTaskContext
public class EngineSourceTaskContext
extends Object
implements DebeziumSourceTaskContext, org.apache.kafka.connect.source.SourceTaskContext
Implementation of
DebeziumSourceTaskContext which holds references to objects which spans whole task life-cycle.
At the same time implements also Kafka Connect SourceTaskContext as current implementation of
DebeziumSourceTask only wraps Kafka Connect SourceTask.- Author:
- vjuranek
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Clockprivate final io.debezium.engine.spi.OffsetCommitPolicyprivate final org.apache.kafka.connect.storage.OffsetStorageReaderprivate final org.apache.kafka.connect.storage.OffsetStorageWriterprivate final Transformations -
Constructor Summary
ConstructorsConstructorDescriptionEngineSourceTaskContext(Map<String, String> config, org.apache.kafka.connect.storage.OffsetStorageReader offsetReader, org.apache.kafka.connect.storage.OffsetStorageWriter offsetWriter, io.debezium.engine.spi.OffsetCommitPolicy offsetCommitPolicy, Clock clock, Transformations transformations) -
Method Summary
Modifier and TypeMethodDescriptionclock()Gets theClockwhich should be used withOffsetCommitPolicyfor this task.config()Gets the configuration with which the task has been started.configs()io.debezium.engine.spi.OffsetCommitPolicyGets theOffsetCommitPolicyfor this task.org.apache.kafka.connect.storage.OffsetStorageReaderGets theOffsetStorageReaderfor this SourceTask.org.apache.kafka.connect.storage.OffsetStorageWriterGets theOffsetStorageWriterfor this SourceTask.Gets the transformations which the task should apply to source events before passing them to the consumer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.connect.source.SourceTaskContext
transactionContext
-
Field Details
-
config
-
offsetReader
private final org.apache.kafka.connect.storage.OffsetStorageReader offsetReader -
offsetWriter
private final org.apache.kafka.connect.storage.OffsetStorageWriter offsetWriter -
offsetCommitPolicy
private final io.debezium.engine.spi.OffsetCommitPolicy offsetCommitPolicy -
clock
-
transformations
-
-
Constructor Details
-
EngineSourceTaskContext
public EngineSourceTaskContext(Map<String, String> config, org.apache.kafka.connect.storage.OffsetStorageReader offsetReader, org.apache.kafka.connect.storage.OffsetStorageWriter offsetWriter, io.debezium.engine.spi.OffsetCommitPolicy offsetCommitPolicy, Clock clock, Transformations transformations)
-
-
Method Details
-
config
Description copied from interface:DebeziumSourceTaskContextGets the configuration with which the task has been started.- Specified by:
configin interfaceDebeziumSourceTaskContext
-
offsetStorageReader
public org.apache.kafka.connect.storage.OffsetStorageReader offsetStorageReader()Description copied from interface:DebeziumSourceTaskContextGets theOffsetStorageReaderfor this SourceTask.- Specified by:
offsetStorageReaderin interfaceDebeziumSourceTaskContext- Specified by:
offsetStorageReaderin interfaceorg.apache.kafka.connect.source.SourceTaskContext
-
offsetStorageWriter
public org.apache.kafka.connect.storage.OffsetStorageWriter offsetStorageWriter()Description copied from interface:DebeziumSourceTaskContextGets theOffsetStorageWriterfor this SourceTask.- Specified by:
offsetStorageWriterin interfaceDebeziumSourceTaskContext
-
offsetCommitPolicy
public io.debezium.engine.spi.OffsetCommitPolicy offsetCommitPolicy()Description copied from interface:DebeziumSourceTaskContextGets theOffsetCommitPolicyfor this task.- Specified by:
offsetCommitPolicyin interfaceDebeziumSourceTaskContext
-
clock
Description copied from interface:DebeziumSourceTaskContextGets theClockwhich should be used withOffsetCommitPolicyfor this task.- Specified by:
clockin interfaceDebeziumSourceTaskContext
-
transformations
Description copied from interface:DebeziumSourceTaskContextGets the transformations which the task should apply to source events before passing them to the consumer.- Specified by:
transformationsin interfaceDebeziumSourceTaskContext
-
configs
- Specified by:
configsin interfaceorg.apache.kafka.connect.source.SourceTaskContext
-