Class DeleteRecordsResult

java.lang.Object
org.apache.kafka.clients.admin.DeleteRecordsResult

@Evolving public class DeleteRecordsResult extends Object
The result of the Admin.deleteRecords(Map) call. The API of this class is evolving, see Admin for details.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeleteRecordsResult(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.common.KafkaFuture<DeletedRecords>> futures)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public org.apache.kafka.common.KafkaFuture<Void> all()
      Return a future which succeeds only if all the records deletions succeed.