Class DeleteTopicsResult

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

@Evolving public class DeleteTopicsResult extends Object
The result of the Admin.deleteTopics(Collection) call. The API of this class is evolving, see Admin for details.
  • Constructor Details

    • DeleteTopicsResult

      protected DeleteTopicsResult(Map<org.apache.kafka.common.Uuid,org.apache.kafka.common.KafkaFuture<Void>> topicIdFutures, Map<String,org.apache.kafka.common.KafkaFuture<Void>> nameFutures)
  • Method Details

    • topicIdValues

      public Map<org.apache.kafka.common.Uuid,org.apache.kafka.common.KafkaFuture<Void>> topicIdValues()
      Returns:
      a map from topic IDs to futures which can be used to check the status of individual deletions if the deleteTopics request used topic IDs. Otherwise return null.
    • topicNameValues

      public Map<String,org.apache.kafka.common.KafkaFuture<Void>> topicNameValues()
      Returns:
      a map from topic names to futures which can be used to check the status of individual deletions if the deleteTopics request used topic names. Otherwise return null.
    • values

      @Deprecated public Map<String,org.apache.kafka.common.KafkaFuture<Void>> values()
      Deprecated.
      Since 3.0 use topicNameValues() instead
      Returns:
      a map from topic names to futures which can be used to check the status of individual deletions if the deleteTopics request used topic names. Otherwise return null.
    • all

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