Class ClientQuotaEntity

java.lang.Object
org.apache.kafka.common.quota.ClientQuotaEntity

public class ClientQuotaEntity extends Object
Describes a client quota entity, which is a mapping of entity types to their names.
  • Field Details

  • Constructor Details

    • ClientQuotaEntity

      public ClientQuotaEntity(Map<String,String> entries)
      Constructs a quota entity for the given types and names. If a name is null, then it is mapped to the built-in default entity name.
      Parameters:
      entries - maps entity type to its name
  • Method Details

    • isValidEntityType

      public static boolean isValidEntityType(String entityType)
    • entries

      public Map<String,String> entries()
      Returns:
      map of entity type to its name
    • 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