Class ConfigResource

java.lang.Object
org.apache.kafka.common.config.ConfigResource

public final class ConfigResource extends Object
A class representing resources that have configs.
  • Constructor Details

    • ConfigResource

      public ConfigResource(ConfigResource.Type type, String name)
      Create an instance of this class with the provided parameters.
      Parameters:
      type - a non-null resource type
      name - a non-null resource name
  • Method Details

    • type

      public ConfigResource.Type type()
      Return the resource type.
    • name

      public String name()
      Return the resource name.
    • isDefault

      public boolean isDefault()
      Returns true if this is the default resource of a resource type. Resource name is empty for the default resource.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object