mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
				synced 2025-10-31 10:37:46 +00:00 
			
		
		
		
	Ability to block producer in case the underlying queue is full.
This commit is contained in:
		| @@ -86,9 +86,10 @@ public: | |||||||
|      * The policy to use for the payload. The default policy is COPY_PAYLOAD |      * The policy to use for the payload. The default policy is COPY_PAYLOAD | ||||||
|      */ |      */ | ||||||
|     enum class PayloadPolicy { |     enum class PayloadPolicy { | ||||||
|         PASSTHROUGH_PAYLOAD = 0,            ///< Rdkafka will not copy nor free the payload. |         PASSTHROUGH_PAYLOAD = 0,                   ///< Rdkafka will not copy nor free the payload. | ||||||
|         COPY_PAYLOAD = RD_KAFKA_MSG_F_COPY, ///< Means RD_KAFKA_MSG_F_COPY |         COPY_PAYLOAD = RD_KAFKA_MSG_F_COPY,        ///< Means RD_KAFKA_MSG_F_COPY | ||||||
|         FREE_PAYLOAD = RD_KAFKA_MSG_F_FREE  ///< Means RD_KAFKA_MSG_F_FREE |         FREE_PAYLOAD = RD_KAFKA_MSG_F_FREE,        ///< Means RD_KAFKA_MSG_F_FREE | ||||||
|  |         BLOCK_ON_FULL_QUEUE = RD_KAFKA_MSG_F_BLOCK ///< Producer will block if the underlying queue is full | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Hana Dusíková
					Hana Dusíková