Class DbCheckpointState
java.lang.Object
io.camunda.zeebe.backup.processing.state.DbCheckpointState
- All Implemented Interfaces:
CheckpointState
-
Field Summary
Fields inherited from interface io.camunda.zeebe.backup.processing.state.CheckpointState
NO_CHECKPOINT -
Constructor Summary
ConstructorsConstructorDescriptionDbCheckpointState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the id of the last created checkpointlongReturns the position of the last created checkpointvoidsetCheckpointInfo(long checkpointId, long checkpointPosition) Set checkpointId and checkpointPosition
-
Constructor Details
-
DbCheckpointState
-
-
Method Details
-
getCheckpointId
public long getCheckpointId()Description copied from interface:CheckpointStateReturns the id of the last created checkpoint- Specified by:
getCheckpointIdin interfaceCheckpointState- Returns:
- checkpointId
-
getCheckpointPosition
public long getCheckpointPosition()Description copied from interface:CheckpointStateReturns the position of the last created checkpoint- Specified by:
getCheckpointPositionin interfaceCheckpointState- Returns:
- checkpointPosition
-
setCheckpointInfo
public void setCheckpointInfo(long checkpointId, long checkpointPosition) Description copied from interface:CheckpointStateSet checkpointId and checkpointPosition- Specified by:
setCheckpointInfoin interfaceCheckpointState- Parameters:
checkpointId- id of the checkpointcheckpointPosition- position of the checkpoint
-