Skip to content

Commit 88693e5

Browse files
committed
Polishing.
Tweak wording. See #3021
1 parent 896e5a9 commit 88693e5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/main/java/org/springframework/data/redis/stream/StreamMessageListenerContainer.java

+11-11
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ static StreamMessageListenerContainer<String, MapRecord<String, String, String>>
156156
}
157157

158158
/**
159-
* Register a new subscription for a Redis Stream. If a {@link StreamMessageListenerContainer} is already
160-
* {@link StreamMessageListenerContainer#isRunning() running} the {@link Subscription} will be added and run
159+
* Register a new subscription for a Redis Stream. If the container is already
160+
* {@link StreamMessageListenerContainer#isRunning() running} the {@link Subscription} will be added and started
161161
* immediately, otherwise it'll be scheduled and started once the container is actually
162162
* {@link StreamMessageListenerContainer#start() started}.
163163
* <p>
@@ -176,8 +176,8 @@ default Subscription receive(StreamOffset<K> streamOffset, StreamListener<K, V>
176176
}
177177

178178
/**
179-
* Register a new subscription for a Redis Stream. If a {@link StreamMessageListenerContainer} is already
180-
* {@link StreamMessageListenerContainer#isRunning() running} the {@link Subscription} will be added and run
179+
* Register a new subscription for a Redis Stream. If the container is already
180+
* {@link StreamMessageListenerContainer#isRunning() running} the {@link Subscription} will be added and started
181181
* immediately, otherwise it'll be scheduled and started once the container is actually
182182
* {@link StreamMessageListenerContainer#start() started}.
183183
* <p>
@@ -203,8 +203,8 @@ default Subscription receive(Consumer consumer, StreamOffset<K> streamOffset, St
203203
}
204204

205205
/**
206-
* Register a new subscription for a Redis Stream. If a {@link StreamMessageListenerContainer} is already
207-
* {@link StreamMessageListenerContainer#isRunning() running} the {@link Subscription} will be added and run
206+
* Register a new subscription for a Redis Stream. If the container is already
207+
* {@link StreamMessageListenerContainer#isRunning() running} the {@link Subscription} will be added and started
208208
* immediately, otherwise it'll be scheduled and started once the container is actually
209209
* {@link StreamMessageListenerContainer#start() started}.
210210
* <p>
@@ -227,8 +227,8 @@ default Subscription receiveAutoAck(Consumer consumer, StreamOffset<K> streamOff
227227
}
228228

229229
/**
230-
* Register a new subscription for a Redis Stream. If a {@link StreamMessageListenerContainer} is already
231-
* {@link StreamMessageListenerContainer#isRunning() running} the {@link Subscription} will be added and run
230+
* Register a new subscription for a Redis Stream. If the container is already
231+
* {@link StreamMessageListenerContainer#isRunning() running} the {@link Subscription} will be added and started
232232
* immediately, otherwise it'll be scheduled and started once the container is actually
233233
* {@link StreamMessageListenerContainer#start() started}.
234234
* <p>
@@ -250,9 +250,9 @@ default Subscription receiveAutoAck(Consumer consumer, StreamOffset<K> streamOff
250250

251251
/**
252252
* Unregister a given {@link Subscription} from the container. This prevents the {@link Subscription} to be restarted
253-
* in a potential {@link SmartLifecycle#stop() stop}/{@link SmartLifecycle#start() start} scenario.<br />
254-
* An {@link Subscription#isActive() active} {@link Subscription subcription} is {@link Subscription#cancel()
255-
* cancelled} prior to removal.
253+
* in a potential {@link SmartLifecycle#stop() stop}/{@link SmartLifecycle#start() start} scenario. An
254+
* {@link Subscription#isActive() active} {@link Subscription subcription} is {@link Subscription#cancel() cancelled}
255+
* prior to removal.
256256
*
257257
* @param subscription must not be {@literal null}.
258258
*/

0 commit comments

Comments
 (0)