@@ -103,10 +103,16 @@ public interface ReactiveRedisOperations<K, V> {
103
103
104
104
/**
105
105
* Subscribe to the given Redis {@code channels} and emit {@link Message messages} received for those.
106
+ * <p>
107
+ * Note that this method allocates a new
108
+ * {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} and uses a dedicated
109
+ * connection, similar to other methods on this interface. Invoking this method multiple times is an indication that
110
+ * you should use {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} directly.
106
111
*
107
112
* @param channels must not be {@literal null}.
108
113
* @return a hot sequence of {@link Message messages}.
109
114
* @since 2.1
115
+ * @see org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer
110
116
*/
111
117
default Flux <? extends Message <String , V >> listenToChannel (String ... channels ) {
112
118
@@ -118,10 +124,16 @@ default Flux<? extends Message<String, V>> listenToChannel(String... channels) {
118
124
/**
119
125
* Subscribe to the Redis channels matching the given {@code pattern} and emit {@link Message messages} received for
120
126
* those.
127
+ * <p>
128
+ * Note that this method allocates a new
129
+ * {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} and uses a dedicated
130
+ * connection, similar to other methods on this interface. Invoking this method multiple times is an indication that
131
+ * you should use {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} directly.
121
132
*
122
133
* @param patterns must not be {@literal null}.
123
134
* @return a hot sequence of {@link Message messages}.
124
135
* @since 2.1
136
+ * @see org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer
125
137
*/
126
138
default Flux <? extends Message <String , V >> listenToPattern (String ... patterns ) {
127
139
@@ -132,16 +144,27 @@ default Flux<? extends Message<String, V>> listenToPattern(String... patterns) {
132
144
/**
133
145
* Subscribe to the Redis channels for the given {@link Topic topics} and emit {@link Message messages} received for
134
146
* those.
147
+ * <p>
148
+ * Note that this method allocates a new
149
+ * {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} and uses a dedicated
150
+ * connection, similar to other methods on this interface. Invoking this method multiple times is an indication that
151
+ * you should use {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} directly.
135
152
*
136
153
* @param topics must not be {@literal null}.
137
154
* @return a hot sequence of {@link Message messages}.
138
155
* @since 2.1
156
+ * @see org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer
139
157
*/
140
158
Flux <? extends Message <String , V >> listenTo (Topic ... topics );
141
159
142
160
/**
143
161
* Subscribe to the given Redis {@code channels} and emit {@link Message messages} received for those. The
144
162
* {@link Mono} completes once the {@link Topic topic} subscriptions are registered.
163
+ * <p>
164
+ * Note that this method allocates a new
165
+ * {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} and uses a dedicated
166
+ * connection, similar to other methods on this interface. Invoking this method multiple times is an indication that
167
+ * you should use {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} directly.
145
168
*
146
169
* @param channels must not be {@literal null}.
147
170
* @return a hot sequence of {@link Message messages}.
@@ -158,6 +181,11 @@ default Mono<Flux<? extends Message<String, V>>> listenToChannelLater(String...
158
181
/**
159
182
* Subscribe to the Redis channels matching the given {@code pattern} and emit {@link Message messages} received for
160
183
* those. The {@link Mono} completes once the {@link Topic topic} subscriptions are registered.
184
+ * <p>
185
+ * Note that this method allocates a new
186
+ * {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} and uses a dedicated
187
+ * connection, similar to other methods on this interface. Invoking this method multiple times is an indication that
188
+ * you should use {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} directly.
161
189
*
162
190
* @param patterns must not be {@literal null}.
163
191
* @return a hot sequence of {@link Message messages}.
@@ -173,6 +201,11 @@ default Mono<Flux<? extends Message<String, V>>> listenToPatternLater(String...
173
201
/**
174
202
* Subscribe to the Redis channels for the given {@link Topic topics} and emit {@link Message messages} received for
175
203
* those. The {@link Mono} completes once the {@link Topic topic} subscriptions are registered.
204
+ * <p>
205
+ * Note that this method allocates a new
206
+ * {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} and uses a dedicated
207
+ * connection, similar to other methods on this interface. Invoking this method multiple times is an indication that
208
+ * you should use {@link org.springframework.data.redis.listener.ReactiveRedisMessageListenerContainer} directly.
176
209
*
177
210
* @param topics must not be {@literal null}.
178
211
* @return a hot sequence of {@link Message messages}.
0 commit comments