public class ResourcePattern extends Object implements Comparable<ResourcePattern>
AccessRule
. This uses
resource types that are not pre-defined, enabling this class to be used for defining
rules in different components.Modifier and Type | Field and Description |
---|---|
static ResourcePattern |
ALL |
Constructor and Description |
---|
ResourcePattern(ResourceType resourceType,
String name,
org.apache.kafka.common.resource.PatternType patternType) |
ResourcePattern(String type,
String name,
org.apache.kafka.common.resource.PatternType patternType) |
Modifier and Type | Method and Description |
---|---|
static ResourcePattern |
all(ResourceType resourceType) |
int |
compareTo(ResourcePattern other) |
boolean |
equals(Object o) |
static ResourcePattern |
from(org.apache.kafka.common.resource.ResourcePattern resourcePattern) |
static ResourcePattern |
from(org.apache.kafka.common.resource.ResourcePatternFilter resourcePattern) |
int |
hashCode()
AclBindingKey(ResourcePattern, Scope) is used to determine the _confluent-metadata-auth topic
partition for storing AclBindingKey/Value.
|
String |
name() |
org.apache.kafka.common.resource.PatternType |
patternType() |
ResourceType |
resourceType() |
static org.apache.kafka.common.resource.ResourcePattern |
to(ResourcePattern resourcePattern) |
ResourcePatternFilter |
toFilter() |
String |
toString() |
public static final ResourcePattern ALL
public ResourcePattern(String type, String name, org.apache.kafka.common.resource.PatternType patternType)
public ResourcePattern(ResourceType resourceType, String name, org.apache.kafka.common.resource.PatternType patternType)
public String name()
public ResourceType resourceType()
public org.apache.kafka.common.resource.PatternType patternType()
public ResourcePatternFilter toFilter()
public int hashCode()
public int compareTo(ResourcePattern other)
compareTo
in interface Comparable<ResourcePattern>
public static ResourcePattern all(ResourceType resourceType)
public static ResourcePattern from(org.apache.kafka.common.resource.ResourcePattern resourcePattern)
public static org.apache.kafka.common.resource.ResourcePattern to(ResourcePattern resourcePattern)
public static ResourcePattern from(org.apache.kafka.common.resource.ResourcePatternFilter resourcePattern)