public class TopicDescription
extends java.lang.Object
Constructor and Description |
---|
TopicDescription(java.lang.String name,
boolean internal,
java.util.List<TopicPartitionInfo> partitions)
Create an instance with the specified parameters.
|
TopicDescription(java.lang.String name,
boolean internal,
java.util.List<TopicPartitionInfo> partitions,
java.util.Set<AclOperation> authorizedOperations)
Create an instance with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<AclOperation> |
authorizedOperations()
authorized operations for this topic, or null if this is not known.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isInternal()
Whether the topic is internal to Kafka.
|
java.lang.String |
name()
The name of the topic.
|
java.util.List<TopicPartitionInfo> |
partitions()
A list of partitions where the index represents the partition id and the element contains leadership and replica
information for that partition.
|
java.lang.String |
toString() |
public TopicDescription(java.lang.String name, boolean internal, java.util.List<TopicPartitionInfo> partitions)
name
- The topic nameinternal
- Whether the topic is internal to Kafkapartitions
- A list of partitions where the index represents the partition id and the element contains
leadership and replica information for that partition.public TopicDescription(java.lang.String name, boolean internal, java.util.List<TopicPartitionInfo> partitions, java.util.Set<AclOperation> authorizedOperations)
name
- The topic nameinternal
- Whether the topic is internal to Kafkapartitions
- A list of partitions where the index represents the partition id and the element contains
leadership and replica information for that partition.authorizedOperations
- authorized operations for this topic, or null if this is not known.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String name()
public boolean isInternal()
public java.util.List<TopicPartitionInfo> partitions()
public java.util.Set<AclOperation> authorizedOperations()
public java.lang.String toString()
toString
in class java.lang.Object