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 been marked as deprecated to avoid unnecessary noise.
  • Constructor Details

    • AdminClient

      public AdminClient()
  • Method Details

    • 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.