public class OffsetCheckpointReadOnly extends OffsetCheckpoint
<version> <n> <topic_name_1> <partition_1> <offset_1> . . . <topic_name_n> <partition_n> <offset_n>The first line contains a number designating the format version (currently 0), the get line contains a number giving the total number of offsets. Each successive line gives a topic/partition/offset triple separated by spaces.
CHECKPOINT_FILE_NAME, file, LOCK_FILE_NAME| Constructor and Description |
|---|
OffsetCheckpointReadOnly(String checkpointDir,
int version,
String topic) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUpLockFile(File baseDir) |
void |
write(Map<org.apache.kafka.common.TopicPartition,Long> offsets)
Write the given offsets to the checkpoint file.
|
public OffsetCheckpointReadOnly(String checkpointDir, int version, String topic) throws IOException
IOExceptionprotected void setUpLockFile(File baseDir)
setUpLockFile in class OffsetCheckpointpublic void write(Map<org.apache.kafka.common.TopicPartition,Long> offsets)
OffsetCheckpointwrite in class OffsetCheckpointCopyright © 2026 Confluent, Inc.. All rights reserved.