106106 * @author Mark Paluch
107107 * @author Christoph Strobl
108108 * @author Christian Rest
109+ * @author DongCheol Kim
109110 * @param <K> Stream key and Stream field type.
110111 * @param <V> Stream value type.
111112 * @since 2.2
@@ -155,9 +156,10 @@ static StreamMessageListenerContainer<String, MapRecord<String, String, String>>
155156 }
156157
157158 /**
158- * Register a new subscription for a Redis Stream. If the {@link StreamMessageListenerContainer#isRunning() is already
159- * running} the {@link Subscription} will be added and run immediately, otherwise it'll be scheduled and started once
160- * the container is actually {@link StreamMessageListenerContainer#start() started}.
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
161+ * immediately, otherwise it'll be scheduled and started once the container is actually
162+ * {@link StreamMessageListenerContainer#start() started}.
161163 * <p>
162164 * Errors during {@link Record} retrieval lead to {@link Subscription#cancel() cancellation} of the underlying task.
163165 * <p>
@@ -174,9 +176,10 @@ default Subscription receive(StreamOffset<K> streamOffset, StreamListener<K, V>
174176 }
175177
176178 /**
177- * Register a new subscription for a Redis Stream. If the {@link StreamMessageListenerContainer#isRunning() is already
178- * running} the {@link Subscription} will be added and run immediately, otherwise it'll be scheduled and started once
179- * the container is actually {@link StreamMessageListenerContainer#start() started}.
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
181+ * immediately, otherwise it'll be scheduled and started once the container is actually
182+ * {@link StreamMessageListenerContainer#start() started}.
180183 * <p>
181184 * Every message must be acknowledged using
182185 * {@link org.springframework.data.redis.core.StreamOperations#acknowledge(Object, String, String...)} after
@@ -200,9 +203,10 @@ default Subscription receive(Consumer consumer, StreamOffset<K> streamOffset, St
200203 }
201204
202205 /**
203- * Register a new subscription for a Redis Stream. If the {@link StreamMessageListenerContainer#isRunning() is already
204- * running} the {@link Subscription} will be added and run immediately, otherwise it'll be scheduled and started once
205- * the container is actually {@link StreamMessageListenerContainer#start() started}.
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
208+ * immediately, otherwise it'll be scheduled and started once the container is actually
209+ * {@link StreamMessageListenerContainer#start() started}.
206210 * <p>
207211 * Every message is acknowledged when received.
208212 * <p>
@@ -223,9 +227,10 @@ default Subscription receiveAutoAck(Consumer consumer, StreamOffset<K> streamOff
223227 }
224228
225229 /**
226- * Register a new subscription for a Redis Stream. If the {@link StreamMessageListenerContainer#isRunning() is already
227- * running} the {@link Subscription} will be added and run immediately, otherwise it'll be scheduled and started once
228- * the container is actually {@link StreamMessageListenerContainer#start() started}.
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
232+ * immediately, otherwise it'll be scheduled and started once the container is actually
233+ * {@link StreamMessageListenerContainer#start() started}.
229234 * <p>
230235 * Errors during {@link Record} are tested against test {@link StreamReadRequest#getCancelSubscriptionOnError()
231236 * cancellation predicate} whether to cancel the underlying task.
0 commit comments