Class TopicPartition

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

public final class TopicPartition
extends Object
implements Serializable
A topic name and partition number
See Also:
Serialized Form
  • Constructor Details

    • TopicPartition

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

    • partition

      public int partition()
    • topic

      public String topic()
    • 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