Package org.apache.kafka.common.quota
Class ClientQuotaFilterComponent
java.lang.Object
org.apache.kafka.common.quota.ClientQuotaFilterComponent
Describes a component for applying a client quota filter.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
match()
static ClientQuotaFilterComponent
ofDefaultEntity
(String entityType) Constructs and returns a filter component that matches the built-in default entity name for the entity type.static ClientQuotaFilterComponent
Constructs and returns a filter component that exactly matches the provided entity name for the entity type.static ClientQuotaFilterComponent
ofEntityType
(String entityType) Constructs and returns a filter component that matches any specified name for the entity type.toString()
-
Method Details
-
ofEntity
Constructs and returns a filter component that exactly matches the provided entity name for the entity type.- Parameters:
entityType
- the entity type the filter component applies toentityName
- the entity name that's matched exactly
-
ofDefaultEntity
Constructs and returns a filter component that matches the built-in default entity name for the entity type.- Parameters:
entityType
- the entity type the filter component applies to
-
ofEntityType
Constructs and returns a filter component that matches any specified name for the entity type.- Parameters:
entityType
- the entity type the filter component applies to
-
entityType
- Returns:
- the component's entity type
-
match
- Returns:
- the optional match string, where: if present, the name that's matched exactly if empty, matches the default name if null, matches any specified name
-
equals
-
hashCode
public int hashCode() -
toString
-