Skip to content

Commit 23e70df

Browse files
author
Matthew Sackman
committed
Merging bug 21974 onto default
2 parents 0c536e6 + 1285dc5 commit 23e70df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/src/com/rabbitmq/examples/MulticastMain.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,15 @@ public static void main(String[] args) {
8585
int maxRedirects = intArg(cmd, 'd', 0);
8686
int timeLimit = intArg(cmd, 'z', 0);
8787
List flags = lstArg(cmd, 'f');
88+
int frameMax = intArg(cmd, 'M', 0);
8889

8990
//setup
9091
String id = UUID.randomUUID().toString();
9192
Stats stats = new Stats(1000L * samplingInterval);
9293
ConnectionFactory factory = new ConnectionFactory();
9394
factory.setHost(hostName);
9495
factory.setPort(portNumber);
96+
factory.setRequestedFrameMax(frameMax);
9597

9698
Thread[] consumerThreads = new Thread[consumerCount];
9799
Connection[] consumerConnections = new Connection[consumerCount];
@@ -175,6 +177,7 @@ private static Options getOptions() {
175177
Option flag = new Option("f", "flag", true, "message flag");
176178
flag.setArgs(Option.UNLIMITED_VALUES);
177179
options.addOption(flag);
180+
options.addOption(new Option("M", "framemax", true, "frame max"));
178181
return options;
179182
}
180183

0 commit comments

Comments
 (0)