OffsetCheckpoint

OffsetCheckpoint is…​FIXME

OffsetCheckpoint is created when:

  1. AbstractStateManager is created

  2. ProcessorStateManager is requested to checkpoint

OffsetCheckpoint only takes the offset checkpoint file when created.

Note
The default name of the file is .checkpoint.

OffsetCheckpoint uses the internal version to maintain compatibility between checkpointing protocols. The current version is 0.

Loading Offset Checkpoint File — read Method

Map<TopicPartition, Long> read() throws IOException

read…​FIXME

Note

read is used when:

Writing Offsets to Checkpoint File — write Method

void write(final Map<TopicPartition, Long> offsets) throws IOException

write…​FIXME

Note

write is used when:

Deleting Offset Checkpoint File — delete Method

void delete() throws IOException

delete simply deletes the offset checkpoint file if exists.

Note
delete is used exclusively when ProcessorStateManager is created (with Exactly-Once Support (EOS) enabled).

results matching ""

    No results matching ""