Class ClientQuotaFilter
java.lang.Object
org.apache.kafka.common.quota.ClientQuotaFilter
Describes a client quota entity filter.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClientQuotaFilterall()Constructs and returns a quota filter that matches all configured entities.static ClientQuotaFiltercontains(Collection<ClientQuotaFilterComponent> components) Constructs and returns a quota filter that matches all provided components.static ClientQuotaFiltercontainsOnly(Collection<ClientQuotaFilterComponent> components) Constructs and returns a quota filter that matches all provided components.booleaninthashCode()booleanstrict()toString()
-
Method Details
-
contains
Constructs and returns a quota filter that matches all provided components. Matching entities with entity types that are not specified by a component will also be included in the result.- Parameters:
components- the components for the filter
-
containsOnly
Constructs and returns a quota filter that matches all provided components. Matching entities with entity types that are not specified by a component will *not* be included in the result.- Parameters:
components- the components for the filter
-
all
Constructs and returns a quota filter that matches all configured entities. -
components
- Returns:
- the filter's components
-
strict
public boolean strict()- Returns:
- whether the filter is strict, i.e. only includes specified components
-
equals
-
hashCode
-
toString
-