DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| Code Block | ||
|---|---|---|
| ||
/**
* Options for {@link AdminClient#deleteRecords(Map, DeleteRecordsOptions)}.
*/
public class DeleteRecordsOptions extends AbstractOptions<DeleteRecordsOptions> {
}
/**
* Describe records to delete in a call to {@link AdminClient#deleteRecords(Map)}
*/
public class RecordsToDelete {
private long offset;
/**
* Delete all the records before the given {@code offset}
*
* @param offset the offset before which all records will be deleted
*/
public static RecordsToDelete beforeOffset(long offset) { ... }
}
/**
* The result of the {@link AdminClient#deleteRecords(Map)} call.
*/
public class DeleteRecordsResult {
// package access constructor
Map<TopicPartition, KafkaFuture<DeleteRecords>> values() { ... }
KafkaFuture<DeleteRecords> all() { ... }
}
/**
* Represents information about deleted records
*/
public class DeleteRecordsDeletedRecords {
private final long lowWatermark;
/**
* Create an instance of this class with the provided parameters.
*
* @param lowWatermark "low watermark" for the topic partition on which the deletion was executed
*/
public DeleteRecordsDeletedRecords(long lowWatermark) {
this.lowWatermark = lowWatermark;
}
/**
* Return the "low watermark" for the topic partition on which the deletion was executed
*/
public long lowWatermark() {
return lowWatermark;
}
} |
...