mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
				synced 2025-10-31 18:47:48 +00:00 
			
		
		
		
	Added member functions for static consumers
This commit is contained in:
		| @@ -84,6 +84,29 @@ public: | ||||
|      */ | ||||
|     Consumer& get_consumer() final; | ||||
|      | ||||
|     /** | ||||
|      * \brief Creates partitions queues associated with the supplied partitions. | ||||
|      * | ||||
|      * This method contains a default implementation. It adds all the new queues belonging | ||||
|      * to the provided partition list and calls reset_state(). | ||||
|      * To be used with static consumers. | ||||
|      * | ||||
|      * \param partitions Assigned topic partitions. | ||||
|      */ | ||||
|     virtual void assign(TopicPartitionList& partitions); | ||||
|      | ||||
|     /** | ||||
|      * \brief Removes partitions queues associated with the supplied partitions. | ||||
|      * | ||||
|      * This method contains a default implementation. It removes all the queues | ||||
|      * belonging to the provided partition list and calls reset_state(). | ||||
|      * To be used with static consumers. | ||||
|      * | ||||
|      * \param partitions Revoked topic partitions. If the partition list is empty | ||||
|      *                   all partitions will be revoked. | ||||
|      */ | ||||
|     virtual void revoke(const TopicPartitionList& partitions = {}); | ||||
|      | ||||
| protected: | ||||
|     /** | ||||
|      * \brief Get the queues from all assigned partitions | ||||
| @@ -111,8 +134,8 @@ protected: | ||||
|     /** | ||||
|      * \brief Function to be called when a new partition assignment takes place | ||||
|      * | ||||
|      * This method contains a default implementation. It adds all the new queues belonging | ||||
|      * to the provided partition list and calls reset_state(). | ||||
|      * This method contains a default implementation. It calls assign() | ||||
|      * and invokes the user assignment callback. | ||||
|      * | ||||
|      * \param partitions Assigned topic partitions | ||||
|      */ | ||||
| @@ -121,8 +144,8 @@ protected: | ||||
|     /** | ||||
|      * \brief Function to be called when an old partition assignment gets revoked | ||||
|      * | ||||
|      * This method contains a default implementation. It removes all the queues | ||||
|      * belonging to the provided partition list and calls reset_state(). | ||||
|      * This method contains a default implementation. It calls revoke() | ||||
|      * and invokes the user revocation callback. | ||||
|      * | ||||
|      * \param partitions Revoked topic partitions | ||||
|      */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alexander Damian
					Alexander Damian