Skip to content

Commit fa20326

Browse files
authored
Merge pull request #1400 from davidmorley/jetstream-subscription-docs-clarification
Clarify documentation for JetStreamSubscription
2 parents b2eb20a + e953660 commit fa20326

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/nats/client/JetStreamSubscription.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public interface JetStreamSubscription extends Subscription {
133133
* ! Pull subscriptions only. Push subscription will throw IllegalStateException
134134
*
135135
* @param batchSize the size of the batch
136-
* @param maxWait the maximum time to wait for the first message.
136+
* @param maxWait the maximum time to wait to collect messages for the batch.
137137
*
138138
* @return the list of messages
139139
* @throws IllegalStateException if not a pull subscription.
@@ -148,7 +148,7 @@ public interface JetStreamSubscription extends Subscription {
148148
* ! Pull subscriptions only. Push subscription will throw IllegalStateException
149149
*
150150
* @param batchSize the size of the batch
151-
* @param maxWaitMillis the maximum time to wait for the first message, in milliseconds.
151+
* @param maxWaitMillis the maximum time to wait to collect messages for the batch, in milliseconds.
152152
*
153153
* @return the list of messages
154154
* @throws IllegalStateException if not a pull subscription.

0 commit comments

Comments
 (0)