Interface KafkaAdminOperations
- All Known Implementing Classes:
KafkaAdmin
public interface KafkaAdminOperations
Provides a number of convenience methods wrapping
AdminClient.- Since:
- 2.7
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturn the cluster id, if available.voidcreateOrModifyTopics(org.apache.kafka.clients.admin.NewTopic... topics) Create topics if they don't exist or increase the number of partitions if needed.voiddeleteTopics(String... topicNames) Delete topics from the Kafka cluster.describeTopics(String... topicNames) ObtainTopicDescriptions for these topics.Get an unmodifiable copy of this admin's configuration.
-
Method Details
-
getConfigurationProperties
-
createOrModifyTopics
void createOrModifyTopics(org.apache.kafka.clients.admin.NewTopic... topics) Create topics if they don't exist or increase the number of partitions if needed.- Parameters:
topics- the topics.
-
describeTopics
-
deleteTopics
Delete topics from the Kafka cluster.- Parameters:
topicNames- the topic names to delete.- Since:
- 4.0
-
clusterId
@Nullable String clusterId()Return the cluster id, if available.- Returns:
- the describe cluster id.
- Since:
- 3.0
-