Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
firstline1
titleTaskMetadata.java
linenumberstrue
package org.apache.kafka.streams.processor;

/**
* This function will return a map of TopicPartitions and the highest committed offset seen so far
*/
public Map<TopicPartition, Long> committedOffsets();

/**
* This function will return a map of TopicPartitions and the highest offset seen so far
*/
public Map<TopicPartition, Long> highWatermarksendOffsets();

/**
* This function will return the time task idling started, if the task is not currently idling it will return -1
*/
public Optional<Long> timeCurrentIdlingStarted();

...

This method will return a map that contains a mapping of all TopicPartitions and their committed offsets. The committed offset will be the highest seen so far.

...

endOffsets

Similarly this method will return a map that contains a mapping of all TopicPartitions and their high watermark offset.

...