Package org.apache.kafka.common.resource
Class ResourcePattern
java.lang.Object
org.apache.kafka.common.resource.ResourcePattern
Represents a pattern that is used by ACLs to match zero or more
 
Resources.
 The API for this class is still evolving and we may break compatibility in minor releases, if necessary.- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringA special literal resource name that corresponds to 'all resources of a certain type'.
- 
Constructor SummaryConstructorsConstructorDescriptionResourcePattern(ResourceType resourceType, String name, PatternType patternType) Create a pattern using the supplied parameters.
- 
Method Summary
- 
Field Details- 
WILDCARD_RESOURCEA special literal resource name that corresponds to 'all resources of a certain type'.- See Also:
 
 
- 
- 
Constructor Details- 
ResourcePatternCreate a pattern using the supplied parameters.- Parameters:
- resourceType- non-null, specific, resource type
- name- non-null resource name, which can be the- WILDCARD_RESOURCE.
- patternType- non-null, specific, resource pattern type, which controls how the pattern will match resource names.
 
 
- 
- 
Method Details- 
resourceType- Returns:
- the specific resource type this pattern matches
 
- 
name- Returns:
- the resource name.
 
- 
patternType- Returns:
- the resource pattern type.
 
- 
toFilter- Returns:
- a filter which matches only this pattern.
 
- 
toString
- 
isUnknownpublic boolean isUnknown()- Returns:
- trueif this Resource has any UNKNOWN components.
 
- 
equals
- 
hashCodepublic int hashCode()
 
-