Package org.apache.kafka.common.resource
Class ResourcePattern
- java.lang.Object
 - 
- org.apache.kafka.common.resource.ResourcePattern
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringWILDCARD_RESOURCEA special literal resource name that corresponds to 'all resources of a certain type'. 
- 
Constructor Summary
Constructors Constructor Description ResourcePattern(ResourceType resourceType, java.lang.String name, PatternType patternType)Create a pattern using the supplied parameters. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()booleanisUnknown()java.lang.Stringname()PatternTypepatternType()ResourceTyperesourceType()ResourcePatternFiltertoFilter()java.lang.StringtoString() 
 - 
 
- 
- 
Field Detail
- 
WILDCARD_RESOURCE
public static final java.lang.String WILDCARD_RESOURCE
A special literal resource name that corresponds to 'all resources of a certain type'.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
ResourcePattern
public ResourcePattern(ResourceType resourceType, java.lang.String name, PatternType patternType)
Create a pattern using the supplied parameters.- Parameters:
 resourceType- non-null, specific, resource typename- non-null resource name, which can be theWILDCARD_RESOURCE.patternType- non-null, specific, resource pattern type, which controls how the pattern will match resource names.
 
 - 
 
- 
Method Detail
- 
resourceType
public ResourceType resourceType()
- Returns:
 - the specific resource type this pattern matches
 
 
- 
name
public java.lang.String name()
- Returns:
 - the resource name.
 
 
- 
patternType
public PatternType patternType()
- Returns:
 - the resource pattern type.
 
 
- 
toFilter
public ResourcePatternFilter toFilter()
- Returns:
 - a filter which matches only this pattern.
 
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
isUnknown
public boolean isUnknown()
- Returns:
 trueif this Resource has any UNKNOWN components.
 
- 
equals
public boolean equals(java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
 - 
 
 -