public class CdcConsumerState extends Object
CdcConsumer.onEvents(Iterator) returns true
current offset in WAL segment saved to file.
This allows to the CdcConsumer to continue consumption of the CdcEvent
from the last saved offset in case of fail or restart.CdcConsumer.onEvents(Iterator),
CdcMain| Modifier and Type | Field and Description |
|---|---|
static String |
STATE_FILE_NAME |
| Constructor and Description |
|---|
CdcConsumerState(Path stateDir) |
| Modifier and Type | Method and Description |
|---|---|
WALPointer |
load()
Loads CDC state from file.
|
void |
save(WALPointer ptr)
Saves state to file.
|
public static final String STATE_FILE_NAME
public CdcConsumerState(Path stateDir)
stateDir - State directory.public void save(WALPointer ptr) throws IOException
ptr - WAL pointer.IOExceptionpublic WALPointer load()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.12.0 Release Date : January 10 2022