Class TopicPartitionReplica

java.lang.Object
org.apache.kafka.common.TopicPartitionReplica
All Implemented Interfaces:
Serializable

public final class TopicPartitionReplica
extends Object
implements Serializable
The topic name, partition number and the brokerId of the replica
See Also:
Serialized Form
  • Constructor Details

    • TopicPartitionReplica

      public TopicPartitionReplica​(String topic, int partition, int brokerId)
  • Method Details

    • topic

      public String topic()
    • partition

      public int partition()
    • brokerId

      public int brokerId()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object