@@ -96,21 +96,6 @@ default Mono<Long> acknowledge(String group, Record<K, ?> record) {
96
96
return acknowledge (record .getRequiredStream (), group , record .getId ());
97
97
}
98
98
99
- /**
100
- * Append one or more records to the stream {@code key} with the specified options.
101
- *
102
- * @param key the stream key.
103
- * @param bodyPublisher record body {@link Publisher}.
104
- * @param xAddOptions parameters for the {@literal XADD} call.
105
- * @return the record Ids.
106
- * @see <a href="https://redis.io/commands/xadd">Redis Documentation: XADD</a>
107
- * @since 3.3
108
- */
109
- default Flux <RecordId > add (K key , Publisher <? extends Map <? extends HK , ? extends HV >> bodyPublisher ,
110
- XAddOptions xAddOptions ) {
111
- return Flux .from (bodyPublisher ).flatMap (it -> add (key , it , xAddOptions ));
112
- }
113
-
114
99
/**
115
100
* Append a record to the stream {@code key} with the specified options.
116
101
*
@@ -119,7 +104,7 @@ default Flux<RecordId> add (K key, Publisher<? extends Map<? extends HK, ? exten
119
104
* @param xAddOptions parameters for the {@literal XADD} call.
120
105
* @return the {@link Mono} emitting the {@link RecordId}.
121
106
* @see <a href="https://redis.io/commands/xadd">Redis Documentation: XADD</a>
122
- * @since 3.3
107
+ * @since 3.4
123
108
*/
124
109
default Mono <RecordId > add (K key , Map <? extends HK , ? extends HV > content , XAddOptions xAddOptions ) {
125
110
return add (StreamRecords .newRecord ().in (key ).ofMap (content ), xAddOptions );
@@ -132,7 +117,7 @@ default Mono<RecordId> add(K key, Map<? extends HK, ? extends HV> content, XAddO
132
117
* @param xAddOptions parameters for the {@literal XADD} call.
133
118
* @return the {@link Mono} emitting the {@link RecordId}.
134
119
* @see <a href="https://redis.io/commands/xadd">Redis Documentation: XADD</a>
135
- * @since 3.3
120
+ * @since 3.4
136
121
*/
137
122
@ SuppressWarnings ("unchecked" )
138
123
default Mono <RecordId > add (MapRecord <K , ? extends HK , ? extends HV > record , XAddOptions xAddOptions ) {
@@ -149,7 +134,7 @@ default Mono<RecordId> add(MapRecord<K, ? extends HK, ? extends HV> record, XAdd
149
134
* @see MapRecord
150
135
* @see ObjectRecord
151
136
* @see <a href="https://redis.io/commands/xadd">Redis Documentation: XADD</a>
152
- * @since 3.3
137
+ * @since 3.4
153
138
*/
154
139
Mono <RecordId > add (Record <K , ?> record , XAddOptions xAddOptions );
155
140
0 commit comments