Class ConsumerPartitionAssignor.Subscription

  • Enclosing interface:
    ConsumerPartitionAssignor

    public static final class ConsumerPartitionAssignor.Subscription
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Subscription​(java.util.List<java.lang.String> topics)  
      Subscription​(java.util.List<java.lang.String> topics, java.nio.ByteBuffer userData)  
      Subscription​(java.util.List<java.lang.String> topics, java.nio.ByteBuffer userData, java.util.List<TopicPartition> ownedPartitions)  
    • Constructor Detail

      • Subscription

        public Subscription​(java.util.List<java.lang.String> topics,
                            java.nio.ByteBuffer userData,
                            java.util.List<TopicPartition> ownedPartitions)
      • Subscription

        public Subscription​(java.util.List<java.lang.String> topics,
                            java.nio.ByteBuffer userData)
      • Subscription

        public Subscription​(java.util.List<java.lang.String> topics)
    • Method Detail

      • topics

        public java.util.List<java.lang.String> topics()
      • userData

        public java.nio.ByteBuffer userData()
      • ownedPartitions

        public java.util.List<TopicPartition> ownedPartitions()
      • setGroupInstanceId

        public void setGroupInstanceId​(java.util.Optional<java.lang.String> groupInstanceId)
      • groupInstanceId

        public java.util.Optional<java.lang.String> groupInstanceId()