Package io.debezium.connector.cassandra
Class CommitLogPostProcessor
- java.lang.Object
-
- io.debezium.connector.cassandra.AbstractProcessor
-
- io.debezium.connector.cassandra.CommitLogPostProcessor
-
public class CommitLogPostProcessor extends AbstractProcessor
TheCommitLogPostProcessoris 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 theCommitLogTransfer.
-
-
Field Summary
Fields Modifier and Type Field Description private StringcommitLogRelocationDirprivate CommitLogTransfercommitLogTransferprivate ExecutorServiceexecutorprivate static StringNAMEprivate static intTERMINATION_WAIT_TIME_SECONDSprivate static intTHREAD_POOL_SIZE
-
Constructor Summary
Constructors Constructor Description CommitLogPostProcessor(CassandraConnectorContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Override destroy to clean up resources after stopping the processorvoidprocess()The actual work the processor is doing.(package private) voidshutDown(boolean await)-
Methods inherited from class io.debezium.connector.cassandra.AbstractProcessor
getName, initialize, isRunning, start, stop
-
-
-
-
Field Detail
-
NAME
private static final String NAME
- See Also:
- Constant Field Values
-
THREAD_POOL_SIZE
private static final int THREAD_POOL_SIZE
- See Also:
- Constant Field Values
-
TERMINATION_WAIT_TIME_SECONDS
private static final int TERMINATION_WAIT_TIME_SECONDS
- See Also:
- Constant Field Values
-
executor
private final ExecutorService executor
-
commitLogRelocationDir
private final String commitLogRelocationDir
-
commitLogTransfer
private final CommitLogTransfer commitLogTransfer
-
-
Constructor Detail
-
CommitLogPostProcessor
public CommitLogPostProcessor(CassandraConnectorContext context)
-
-
Method Detail
-
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
public void destroy() throws ExceptionDescription copied from class:AbstractProcessorOverride destroy to clean up resources after stopping the processor- Overrides:
destroyin classAbstractProcessor- Throws:
Exception
-
shutDown
void shutDown(boolean await)
-
-