File tree 3 files changed +20
-1
lines changed
src/main/java/com/rabbitmq/stream
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,15 @@ public interface StreamCreator {
102
102
*/
103
103
StreamCreator initialMemberCount (int initialMemberCount );
104
104
105
+ /**
106
+ * Set an argument for the stream creation.
107
+ *
108
+ * @param key argument key
109
+ * @param value argument value
110
+ * @return this creator instance
111
+ */
112
+ StreamCreator argument (String key , String value );
113
+
105
114
/**
106
115
* Configure the super stream to create.
107
116
*
Original file line number Diff line number Diff line change @@ -2753,7 +2753,11 @@ public StreamParametersBuilder initialMemberCount(int initialMemberCount) {
2753
2753
}
2754
2754
2755
2755
public StreamParametersBuilder put (String key , String value ) {
2756
- parameters .put (key , value );
2756
+ if (value == null ) {
2757
+ parameters .remove (key );
2758
+ } else {
2759
+ parameters .put (key , value );
2760
+ }
2757
2761
return this ;
2758
2762
}
2759
2763
Original file line number Diff line number Diff line change @@ -92,6 +92,12 @@ public StreamCreator initialMemberCount(int initialMemberCount) {
92
92
return this ;
93
93
}
94
94
95
+ @ Override
96
+ public StreamCreator argument (String key , String value ) {
97
+ streamParametersBuilder .put (key , value );
98
+ return this ;
99
+ }
100
+
95
101
@ Override
96
102
public SuperStreamConfiguration superStream () {
97
103
if (this .superStreamConfiguration == null ) {
You can’t perform that action at this time.
0 commit comments