Skip navigation links
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() 
    • Constructor Detail

      • StickyAssignor

        public StickyAssignor()
    • Method Detail

      • assign

        public Map<String,List<TopicPartition>> assign(Map<String,Integer> partitionsPerTopic,
                                                       Map<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(Set<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