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