Interface CheckpointState
- All Known Implementing Classes:
DbCheckpointState
public interface CheckpointState
-
Field Summary
Fields -
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
-
Field Details
-
NO_CHECKPOINT
static final long NO_CHECKPOINT- See Also:
-
-
Method Details
-
getCheckpointId
long getCheckpointId()Returns the id of the last created checkpoint- Returns:
- checkpointId
-
getCheckpointPosition
long getCheckpointPosition()Returns the position of the last created checkpoint- Returns:
- checkpointPosition
-
setCheckpointInfo
void setCheckpointInfo(long checkpointId, long checkpointPosition) Set checkpointId and checkpointPosition- Parameters:
checkpointId- id of the checkpointcheckpointPosition- position of the checkpoint
-