File tree 1 file changed +9
-1
lines changed
src/main/java/com/rabbitmq/stream/perf
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,13 @@ public class StreamPerfTest implements Callable<Integer> {
340
340
defaultValue = "false" )
341
341
private boolean environmentVariables ;
342
342
343
+ @ CommandLine .Option (
344
+ names = {"--rpc-timeout" , "-rt" },
345
+ description = "RPC timeout in seconds" ,
346
+ defaultValue = "10" ,
347
+ converter = Utils .PositiveIntegerTypeConverter .class )
348
+ private int rpcTimeout ;
349
+
343
350
private MetricsCollector metricsCollector ;
344
351
private PerformanceMetrics performanceMetrics ;
345
352
private List <Monitoring > monitorings ;
@@ -562,7 +569,8 @@ public Integer call() throws Exception {
562
569
.codec (codec )
563
570
.maxProducersByConnection (this .producersByConnection )
564
571
.maxTrackingConsumersByConnection (this .trackingConsumersByConnection )
565
- .maxConsumersByConnection (this .consumersByConnection );
572
+ .maxConsumersByConnection (this .consumersByConnection )
573
+ .rpcTimeout (Duration .ofSeconds (this .rpcTimeout ));
566
574
567
575
ChannelCustomizer channelCustomizer = channel -> {};
568
576
You can’t perform that action at this time.
0 commit comments