THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
deleteRecords(Map<TopicPartition, DeletionTarget>DeleteRecordsTarget> partitionsAndOffsets) |
Proposed Changes
...
Code Block | ||
---|---|---|
| ||
public DeleteRecordsResult deleteRecords(Map<TopicPartition, DeletionTarget>DeleteRecordsTarget> partitionsAndOffsets) public DeleteRecordsResult deleteRecords(Map<TopicPartition, DeletionTarget>DeleteRecordsTarget> partitionsAndOffsets, DeleteRecordsOptions options) |
...
TopicPartition
comes from org.apache.kafka.common package
DeletionTarget
DeleteRecordsTarget
and DeleteRecordsResult
are defined as follow.
Code Block | ||
---|---|---|
| ||
/** Describe records as target to delete */ public class DeletionTargetDeleteRecordsTarget { private long offset; /** * Delete all the records before the given {@code offset} */ public static DeletionTargetDeleteRecordsTarget deleteBefore(long offset) { ... } } public class DeleteRecordsResult { // package access constructor Map<TopicPartition, KafkaFuture<Long>> values() { ... } KafkaFuture<Long> all() { ... } } |
...