Package org.apache.kafka.clients.admin
Class DeleteRecordsResult
java.lang.Object
org.apache.kafka.clients.admin.DeleteRecordsResult
The result of the
Admin.deleteRecords(Map) call.
The API of this class is evolving, see Admin for details.-
Constructor Summary
ConstructorsConstructorDescriptionDeleteRecordsResult(Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.common.KafkaFuture<DeletedRecords>> futures) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.common.KafkaFuture<Void> all()Return a future which succeeds only if all the records deletions succeed.Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.common.KafkaFuture<DeletedRecords>> Return a map from topic partition to futures which can be used to check the status of individual deletions.
-
Constructor Details
-
DeleteRecordsResult
public DeleteRecordsResult(Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.common.KafkaFuture<DeletedRecords>> futures)
-
-
Method Details
-
lowWatermarks
public Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.common.KafkaFuture<DeletedRecords>> lowWatermarks()Return a map from topic partition to futures which can be used to check the status of individual deletions. -
all
Return a future which succeeds only if all the records deletions succeed.
-