Skip to content

Commit b6e3481

Browse files
committed
Clarify @PulsarListener.batch attribute intention.
See #1231 Signed-off-by: onobc <[email protected]>
1 parent 8d90de2 commit b6e3481

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spring-pulsar/src/main/java/org/springframework/pulsar/annotation/PulsarListener.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@
128128
String autoStartup() default "";
129129

130130
/**
131-
* Activate batch consumption.
132-
* @return whether this listener is in batch mode or not.
131+
* Whether the listener method that is the target of the annotation expects a list of
132+
* messages or a single message. This does <b>not</b> influence whether messages are
133+
* pulled from the Pulsar consumer in batches.
134+
* @return whether the listener method expects a list of messages or a single message.
133135
*/
134136
boolean batch() default false;
135137

0 commit comments

Comments
 (0)