@@ -63,6 +63,7 @@ public static void main(String[] args) {
6363 String queueNames = strArg (cmd , 'u' , null );
6464 String routingKey = strArg (cmd , 'k' , null );
6565 boolean randomRoutingKey = cmd .hasOption ('K' );
66+ boolean skipBindingQueues = cmd .hasOption ("sb" );
6667 int samplingInterval = intArg (cmd , 'i' , 1 );
6768 float producerRateLimit = floatArg (cmd , 'r' , 0.0f );
6869 float consumerRateLimit = floatArg (cmd , 'R' , 0.0f );
@@ -170,6 +171,7 @@ public void run() {
170171 p .setProducerTxSize ( producerTxSize );
171172 p .setQueueNames ( queueNames == null ? null : asList (queueNames .split ("," )));
172173 p .setRoutingKey ( routingKey );
174+ p .setSkipBindingQueues ( skipBindingQueues );
173175 p .setRandomRoutingKey ( randomRoutingKey );
174176 p .setProducerRateLimit ( producerRateLimit );
175177 p .setTimeLimit ( timeLimit );
@@ -235,6 +237,7 @@ private static Options getOptions() {
235237 options .addOption (new Option ("u" , "queue" , true , "queue name" ));
236238 options .addOption (new Option ("k" , "routing-key" , true , "routing key" ));
237239 options .addOption (new Option ("K" , "random-routing-key" , false ,"use random routing key per message" ));
240+ options .addOption (new Option ("sb" , "skip-binding-queues" , false ,"don't bind queues to the exchange" ));
238241 options .addOption (new Option ("i" , "interval" , true , "sampling interval in seconds" ));
239242 options .addOption (new Option ("r" , "rate" , true , "producer rate limit" ));
240243 options .addOption (new Option ("R" , "consumer-rate" , true , "consumer rate limit" ));
0 commit comments