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
public abstract class AdminClient extends Object implements Admin
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
Constructors Constructor Description AdminClient()
-
Method Summary
Modifier and Type Method Description static AdminClient
create(Map<String,Object> conf)
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, 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, describeProducers, describeProducers, describeReplicaLogDirs, describeReplicaLogDirs, describeTopics, describeTopics, describeTransactions, describeTransactions, describeUserScramCredentials, describeUserScramCredentials, describeUserScramCredentials, electLeaders, electLeaders, expireDelegationToken, expireDelegationToken, incrementalAlterConfigs, incrementalAlterConfigs, 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.
-