Package org.apache.kafka.clients.admin
Class AdminClient
java.lang.Object
org.apache.kafka.clients.admin.AdminClient
- All Implemented Interfaces:
AutoCloseable
,Admin
- Direct Known Subclasses:
KafkaAdminClient
The base class for in-built admin clients.
Client code should use the newer
Admin
interface in preference to this class.
This class may be removed in a later release, but has not be marked as deprecated to avoid unnecessary noise.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AdminClient
Create a new Admin with the given configuration.static AdminClient
create
(Properties props) Create a new Admin with the given configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.kafka.clients.admin.Admin
abortTransaction, abortTransaction, alterClientQuotas, alterClientQuotas, alterConfigs, alterConfigs, alterConsumerGroupOffsets, alterConsumerGroupOffsets, alterPartitionReassignments, alterPartitionReassignments, alterReplicaLogDirs, alterReplicaLogDirs, alterUserScramCredentials, alterUserScramCredentials, clientInstanceId, close, close, createAcls, createAcls, createDelegationToken, createDelegationToken, createPartitions, createPartitions, createTopics, createTopics, deleteAcls, deleteAcls, deleteConsumerGroupOffsets, deleteConsumerGroupOffsets, deleteConsumerGroups, deleteConsumerGroups, deleteRecords, deleteRecords, deleteTopics, deleteTopics, deleteTopics, deleteTopics, describeAcls, describeAcls, describeClientQuotas, describeClientQuotas, describeCluster, describeCluster, describeConfigs, describeConfigs, describeConsumerGroups, describeConsumerGroups, describeDelegationToken, describeDelegationToken, describeFeatures, describeFeatures, describeLogDirs, describeLogDirs, describeMetadataQuorum, describeMetadataQuorum, describeProducers, describeProducers, describeReplicaLogDirs, describeReplicaLogDirs, describeTopics, describeTopics, describeTopics, describeTopics, describeTransactions, describeTransactions, describeUserScramCredentials, describeUserScramCredentials, describeUserScramCredentials, electLeaders, electLeaders, expireDelegationToken, expireDelegationToken, fenceProducers, fenceProducers, incrementalAlterConfigs, incrementalAlterConfigs, listClientMetricsResources, listClientMetricsResources, listConsumerGroupOffsets, listConsumerGroupOffsets, listConsumerGroupOffsets, listConsumerGroupOffsets, listConsumerGroups, listConsumerGroups, listOffsets, listOffsets, listPartitionReassignments, listPartitionReassignments, listPartitionReassignments, listPartitionReassignments, listPartitionReassignments, listTopics, listTopics, listTransactions, listTransactions, metrics, removeMembersFromConsumerGroup, renewDelegationToken, renewDelegationToken, unregisterBroker, unregisterBroker, updateFeatures
-
Constructor Details
-
AdminClient
public AdminClient()
-
-
Method Details
-
create
Create a new Admin with the given configuration.- Parameters:
props
- The configuration.- Returns:
- The new KafkaAdminClient.
-
create
Create a new Admin with the given configuration.- Parameters:
conf
- The configuration.- Returns:
- The new KafkaAdminClient.
-