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 newerAdmin
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
All Methods Static Methods Concrete Methods 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
alterClientQuotas, alterClientQuotas, alterConfigs, alterConfigs, alterConsumerGroupOffsets, alterConsumerGroupOffsets, alterPartitionReassignments, alterPartitionReassignments, alterReplicaLogDirs, alterReplicaLogDirs, alterUserScramCredentials, alterUserScramCredentials, close, close, close, createAcls, createAcls, createDelegationToken, createDelegationToken, createPartitions, createPartitions, createTopics, createTopics, deleteAcls, deleteAcls, deleteConsumerGroupOffsets, deleteConsumerGroupOffsets, deleteConsumerGroups, deleteConsumerGroups, deleteRecords, deleteRecords, deleteTopics, deleteTopics, describeAcls, describeAcls, describeClientQuotas, describeClientQuotas, describeCluster, describeCluster, describeConfigs, describeConfigs, describeConsumerGroups, describeConsumerGroups, describeDelegationToken, describeDelegationToken, describeFeatures, describeFeatures, describeLogDirs, describeLogDirs, describeReplicaLogDirs, describeReplicaLogDirs, describeTopics, describeTopics, describeUserScramCredentials, describeUserScramCredentials, describeUserScramCredentials, electLeaders, electLeaders, electPreferredLeaders, electPreferredLeaders, expireDelegationToken, expireDelegationToken, incrementalAlterConfigs, incrementalAlterConfigs, listConsumerGroupOffsets, listConsumerGroupOffsets, listConsumerGroups, listConsumerGroups, listOffsets, listOffsets, listPartitionReassignments, listPartitionReassignments, listPartitionReassignments, listPartitionReassignments, listPartitionReassignments, listTopics, listTopics, metrics, removeMembersFromConsumerGroup, renewDelegationToken, renewDelegationToken, unregisterBroker, unregisterBroker, updateFeatures
-
-
-
-
Method Detail
-
create
public static AdminClient create(Properties props)
Create a new Admin with the given configuration.- Parameters:
props
- The configuration.- Returns:
- The new KafkaAdminClient.
-
create
public static AdminClient create(Map<String,Object> conf)
Create a new Admin with the given configuration.- Parameters:
conf
- The configuration.- Returns:
- The new KafkaAdminClient.
-
-