Package org.apache.kafka.clients.admin
Class DeleteTopicsResult
- java.lang.Object
-
- org.apache.kafka.clients.admin.DeleteTopicsResult
-
@Evolving public class DeleteTopicsResult extends Object
The result of theAdmin.deleteTopics(Collection)call. The API of this class is evolving, seeAdminfor details.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description KafkaFuture<Void>all()static DeleteTopicsResultofTopicIds(Map<Uuid,KafkaFuture<Void>> topicIdFutures)static DeleteTopicsResultofTopicNames(Map<String,KafkaFuture<Void>> nameFutures)Map<Uuid,KafkaFuture<Void>>topicIdValues()Use whenAdmin.deleteTopics(TopicCollection, DeleteTopicsOptions)used a TopicIdCollectionMap<String,KafkaFuture<Void>>topicNameValues()Use whenAdmin.deleteTopics(TopicCollection, DeleteTopicsOptions)used a TopicNameCollectionMap<String,KafkaFuture<Void>>values()Deprecated.Since 3.0 usetopicNameValues()instead
-
-
-
Method Detail
-
ofTopicIds
public static DeleteTopicsResult ofTopicIds(Map<Uuid,KafkaFuture<Void>> topicIdFutures)
-
ofTopicNames
public static DeleteTopicsResult ofTopicNames(Map<String,KafkaFuture<Void>> nameFutures)
-
topicIdValues
public Map<Uuid,KafkaFuture<Void>> topicIdValues()
Use whenAdmin.deleteTopics(TopicCollection, DeleteTopicsOptions)used a TopicIdCollection- 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,KafkaFuture<Void>> topicNameValues()
Use whenAdmin.deleteTopics(TopicCollection, DeleteTopicsOptions)used a TopicNameCollection- 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,KafkaFuture<Void>> values()
Deprecated.Since 3.0 usetopicNameValues()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 KafkaFuture<Void> all()
- Returns:
- a future which succeeds only if all the topic deletions succeed.
-
-