Class MemberAssignment

java.lang.Object
io.vertx.kafka.admin.MemberAssignment

public class MemberAssignment extends Object
A description of the assignments of a specific group member
  • Constructor Details

    • MemberAssignment

      public MemberAssignment()
      Constructor
    • MemberAssignment

      public MemberAssignment(Set<TopicPartition> topicPartitions)
      Constructor
      Parameters:
      topicPartitions - list of topic partitions
    • MemberAssignment

      public MemberAssignment(JsonObject json)
      Constructor (from JSON representation)
      Parameters:
      json - JSON representation
  • Method Details

    • getTopicPartitions

      public Set<TopicPartition> getTopicPartitions()
      Returns:
      list of topic partitions
    • setTopicPartitions

      public MemberAssignment setTopicPartitions(Set<TopicPartition> topicPartitions)
      Set the list of topic partitions
      Parameters:
      topicPartitions - list of topic partitions
      Returns:
      current instance of the class to be fluent
    • toJson

      public JsonObject toJson()
      Convert object to JSON representation
      Returns:
      JSON representation
    • toString

      public String toString()
      Overrides:
      toString in class Object