Versions Compared

Key

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

Table of Contents

This page is meant as a template for writing a KIP. To create a KIP choose Tools->Copy on this page and modify with your content and replace the heading with the next KIP number and a description of your issue. Replace anything in italics with your own description.

Status

Current state"Under Discussion"

Discussion thread: here [Change the link from the KIP proposal email archive to your own email thread] 

JIRA: here [Change the link from KAFKA-1 to your own ticket]5925 

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

...

Code Block
languagejava
public DeleteRecordsResult deleteRecords(Map<TopicPartition, Long> partitionsAndOffsets)
public DeleteRecordsResult deleteRecords(Map<TopicPartition, Long> partitionsAndOffsets, DeleteRecordsOptions options)

Where :

TopicPartition comes from org.apache.kafka.common package

DeleteRecordsResult is defined as follow. 

Code Block
languagejava
public class DeleteRecordsResult {
    // package access constructor
    Map<TopicPartition, KafkaFuture<Long>> values() { ... }
    KafkaFuture<Long> all() { ... }
}

...

Compatibility, Deprecation, and Migration Plan

 

This is a new API and won't directly affect existing users. 

Rejected Alternatives

If there are alternative ways of accomplishing the same thing, what were they? The purpose of this section is to motivate why the design is the way it is and not some other way.