@@ -33,6 +33,7 @@ public function getConfigTreeBuilder()
3333 $ this ->addConsumers ($ rootNode );
3434 $ this ->addMultipleConsumers ($ rootNode );
3535 $ this ->addDynamicConsumers ($ rootNode );
36+ $ this ->addBatchConsumers ($ rootNode );
3637 $ this ->addAnonConsumers ($ rootNode );
3738 $ this ->addRpcClients ($ rootNode );
3839 $ this ->addRpcServers ($ rootNode );
@@ -220,6 +221,42 @@ protected function addDynamicConsumers(ArrayNodeDefinition $node)
220221 ;
221222 }
222223
224+ /**
225+ * @param ArrayNodeDefinition $node
226+ *
227+ * @return void
228+ */
229+ protected function addBatchConsumers (ArrayNodeDefinition $ node )
230+ {
231+ $ node
232+ ->children ()
233+ ->arrayNode ('batch_consumers ' )
234+ ->canBeUnset ()
235+ ->useAttributeAsKey ('key ' )
236+ ->prototype ('array ' )
237+ ->append ($ this ->getExchangeConfiguration ())
238+ ->children ()
239+ ->scalarNode ('connection ' )->defaultValue ('default ' )->end ()
240+ ->scalarNode ('callback ' )->isRequired ()->end ()
241+ ->scalarNode ('idle_timeout ' )->end ()
242+ ->scalarNode ('timeout_wait ' )->defaultValue (3 )->end ()
243+ ->scalarNode ('idle_timeout_exit_code ' )->end ()
244+ ->scalarNode ('auto_setup_fabric ' )->defaultTrue ()->end ()
245+ ->arrayNode ('qos_options ' )
246+ ->children ()
247+ ->scalarNode ('prefetch_size ' )->defaultValue (0 )->end ()
248+ ->scalarNode ('prefetch_count ' )->defaultValue (2 )->end ()
249+ ->booleanNode ('global ' )->defaultFalse ()->end ()
250+ ->end ()
251+ ->end ()
252+ ->scalarNode ('enable_logger ' )->defaultFalse ()->end ()
253+ ->end ()
254+ ->end ()
255+ ->end ()
256+ ->end ()
257+ ;
258+ }
259+
223260 protected function addAnonConsumers (ArrayNodeDefinition $ node )
224261 {
225262 $ node
0 commit comments