Package io.debezium.connector.cassandra
Class CommitLogPostProcessor
java.lang.Object
io.debezium.connector.cassandra.AbstractProcessor
io.debezium.connector.cassandra.CommitLogPostProcessor
The
CommitLogPostProcessor is used to post-process commit logs in the COMMIT_LOG_RELOCATION_DIR
once the commit log has been processed by the CommitLogProcessor. How the commit log is post-processed
depends on the implementation detail of the CommitLogTransfer.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final CommitLogTransferprivate final ExecutorServiceprivate static final Stringprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.debezium.connector.cassandra.AbstractProcessor
getName, initialize, isRunning, start, stop
-
Field Details
-
NAME
- See Also:
-
THREAD_POOL_SIZE
private static final int THREAD_POOL_SIZE- See Also:
-
TERMINATION_WAIT_TIME_SECONDS
private static final int TERMINATION_WAIT_TIME_SECONDS- See Also:
-
executor
-
commitLogRelocationDir
-
commitLogTransfer
-
-
Constructor Details
-
CommitLogPostProcessor
-
-
Method Details
-
process
public void 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
-
destroy
Description copied from class:AbstractProcessorOverride destroy to clean up resources after stopping the processor- Overrides:
destroyin classAbstractProcessor- Throws:
Exception
-
shutDown
void shutDown(boolean await)
-