org.apache.kafka.clients.consumer

Class StickyAssignor

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.kafka.clients.consumer.internals.PartitionAssignor

        org.apache.kafka.clients.consumer.internals.PartitionAssignor.Assignment, org.apache.kafka.clients.consumer.internals.PartitionAssignor.Subscription
    • Constructor Summary

      Constructors 
      Constructor and Description
      StickyAssignor() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.Map<java.lang.String,java.util.List<TopicPartition>> assign(java.util.Map<java.lang.String,java.lang.Integer> partitionsPerTopic, java.util.Map<java.lang.String,org.apache.kafka.clients.consumer.internals.PartitionAssignor.Subscription> subscriptions) 
      java.lang.String name() 
      void onAssignment(org.apache.kafka.clients.consumer.internals.PartitionAssignor.Assignment assignment) 
      org.apache.kafka.clients.consumer.internals.PartitionAssignor.Subscription subscription(java.util.Set<java.lang.String> topics) 
      • Methods inherited from class org.apache.kafka.clients.consumer.internals.AbstractPartitionAssignor

        assign, partitions, put
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StickyAssignor

        public StickyAssignor()
    • Method Detail

      • assign

        public java.util.Map<java.lang.String,java.util.List<TopicPartition>> assign(java.util.Map<java.lang.String,java.lang.Integer> partitionsPerTopic,
                                                                            java.util.Map<java.lang.String,org.apache.kafka.clients.consumer.internals.PartitionAssignor.Subscription> subscriptions)
        Specified by:
        assign in class org.apache.kafka.clients.consumer.internals.AbstractPartitionAssignor
      • onAssignment

        public void onAssignment(org.apache.kafka.clients.consumer.internals.PartitionAssignor.Assignment assignment)
        Specified by:
        onAssignment in interface org.apache.kafka.clients.consumer.internals.PartitionAssignor
        Overrides:
        onAssignment in class org.apache.kafka.clients.consumer.internals.AbstractPartitionAssignor
      • subscription

        public org.apache.kafka.clients.consumer.internals.PartitionAssignor.Subscription subscription(java.util.Set<java.lang.String> topics)
        Specified by:
        subscription in interface org.apache.kafka.clients.consumer.internals.PartitionAssignor
        Overrides:
        subscription in class org.apache.kafka.clients.consumer.internals.AbstractPartitionAssignor
      • name

        public java.lang.String name()