Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
* @author Christoph Strobl
* @author Christian Rest
* @author DongCheol Kim
* @author Wilson Chuks
*
* @param <K> Stream key and Stream field type.
* @param <V> Stream value type.
* @since 2.2
Expand Down Expand Up @@ -635,12 +637,12 @@ public StreamMessageListenerContainerOptionsBuilder<K, V> pollTimeout(Duration p
/**
* Configure a batch size for the {@code COUNT} option during reading.
*
* @param messagesPerPoll must not be greater zero.
* @param messagesPerPoll must be greater than zero.
* @return {@code this} {@link StreamMessageListenerContainerOptionsBuilder}.
*/
public StreamMessageListenerContainerOptionsBuilder<K, V> batchSize(int messagesPerPoll) {

Assert.isTrue(messagesPerPoll > 0, "Batch size must be greater zero");
Assert.isTrue(messagesPerPoll > 0, "Batch size must be greater than zero");

this.batchSize = messagesPerPoll;
return this;
Expand Down