Package io.debezium.connector.cassandra
Class QueueProcessor
java.lang.Object
io.debezium.connector.cassandra.AbstractProcessor
io.debezium.connector.cassandra.QueueProcessor
A thread that constantly polls records from the queue and emit them to Kafka via the KafkaRecordEmitter.
The processor is also responsible for marking the offset to file and deleting the commit log files.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQueueProcessor(CassandraConnectorContext context, int index, Emitter recordEmitter) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Override destroy to clean up resources after stopping the processorvoidOverride initialize to initialize resources before starting the processorvoidprocess()The actual work the processor is doing.private voidprocessEvent(Event event) Methods inherited from class io.debezium.connector.cassandra.AbstractProcessor
getName, isRunning, start, stop
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
queue
-
recordEmitter
-
commitLogRelocationDir
-
erroneousCommitLogs
-
NAME_PREFIX
- See Also:
-
ARCHIVE_FOLDER
- See Also:
-
ERROR_FOLDER
- See Also:
-
-
Constructor Details
-
QueueProcessor
-
-
Method Details
-
process
Description copied from class:AbstractProcessorThe actual work the processor is doing. This method will be executed in a while loop until processor stops or encounters exception.- Specified by:
processin classAbstractProcessor- Throws:
InterruptedException
-
initialize
Description copied from class:AbstractProcessorOverride initialize to initialize resources before starting the processor- Overrides:
initializein classAbstractProcessor- Throws:
Exception
-
destroy
Description copied from class:AbstractProcessorOverride destroy to clean up resources after stopping the processor- Overrides:
destroyin classAbstractProcessor- Throws:
Exception
-
processEvent
-