Package org.apache.kafka.common.config
Class ConfigResource
java.lang.Object
org.apache.kafka.common.config.ConfigResource
A class representing resources that have configs.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionConfigResource
(ConfigResource.Type type, String name) Create an instance of this class with the provided parameters. -
Method Summary
-
Constructor Details
-
ConfigResource
Create an instance of this class with the provided parameters.- Parameters:
type
- a non-null resource typename
- a non-null resource name
-
-
Method Details
-
type
Return the resource type. -
name
Return the resource name. -
isDefault
public boolean isDefault()Returns true if this is the default resource of a resource type. Resource name is empty for the default resource. -
equals
-
hashCode
public int hashCode() -
toString
-