Class Resource
java.lang.Object
org.apache.kafka.common.resource.Resource
Represents a cluster resource with a tuple of (type, name).
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionResource(ResourceType resourceType, String name) Create an instance of this class with the provided parameters.Method Summary
Field Details
CLUSTER_NAME
CLUSTER
A resource representing the whole cluster.
Constructor Details
Resource
Create an instance of this class with the provided parameters.- Parameters:
resourceType- non-null resource typename- non-null resource name
Method Details
resourceType
Return the resource type.name
Return the resource name.toString
isUnknown
public boolean isUnknown()Return true if this Resource has any UNKNOWN components.equals
hashCode