Class MemberAssignment


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

      • 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 Detail

      • 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