@@ -31,8 +31,8 @@ public interface BaseConsumerContext {
3131 * Read the next message with max wait set to {@value BaseConsumeOptions#DEFAULT_EXPIRES_IN_MILLIS} ms
3232 * @return the next message or null if the max wait expires
3333 * @throws IOException covers various communication issues with the NATS
34- * server such as timeout or interruption
35- * @throws InterruptedException if one is thrown, in order to propagate it up
34+ * server, such as timeout or interruption
35+ * @throws InterruptedException if one is thrown, to propagate it up
3636 * @throws JetStreamStatusCheckedException an exception representing a status that requires attention,
3737 * such as the consumer was deleted on the server in the middle of use.
3838 * @throws JetStreamApiException the request had an error related to the data
@@ -44,8 +44,8 @@ public interface BaseConsumerContext {
4444 * @param maxWait duration of max wait. Cannot be less than {@value BaseConsumeOptions#MIN_EXPIRES_MILLS} milliseconds.
4545 * @return the next message or null if the max wait expires
4646 * @throws IOException covers various communication issues with the NATS
47- * server such as timeout or interruption
48- * @throws InterruptedException if one is thrown, in order to propagate it up
47+ * server, such as timeout or interruption
48+ * @throws InterruptedException if one is thrown, to propagate it up
4949 * @throws JetStreamStatusCheckedException an exception representing a status that requires attention,
5050 * such as the consumer was deleted on the server in the middle of use.
5151 * @throws JetStreamApiException the request had an error related to the data
@@ -57,8 +57,8 @@ public interface BaseConsumerContext {
5757 * @param maxWaitMillis the max wait value in milliseconds. Cannot be less than {@value BaseConsumeOptions#MIN_EXPIRES_MILLS} milliseconds.
5858 * @return the next message or null if the max wait expires
5959 * @throws IOException covers various communication issues with the NATS
60- * server such as timeout or interruption
61- * @throws InterruptedException if one is thrown, in order to propagate it up
60+ * server, such as timeout or interruption
61+ * @throws InterruptedException if one is thrown, to propagate it up
6262 * @throws JetStreamStatusCheckedException an exception representing a status that requires attention,
6363 * such as the consumer was deleted on the server in the middle of use.
6464 * @throws JetStreamApiException the request had an error related to the data
@@ -67,10 +67,10 @@ public interface BaseConsumerContext {
6767
6868 /**
6969 * Start a one use Fetch Consumer using all defaults other than the number of messages. See {@link FetchConsumer}
70- * @param maxMessages the maximum number of message to consume
70+ * @param maxMessages the maximum number of messages to consume
7171 * @return the FetchConsumer instance
7272 * @throws IOException covers various communication issues with the NATS
73- * server such as timeout or interruption
73+ * server, such as timeout or interruption
7474 * @throws JetStreamApiException the request had an error related to the data
7575 */
7676 FetchConsumer fetchMessages (int maxMessages ) throws IOException , JetStreamApiException ;
@@ -80,38 +80,38 @@ public interface BaseConsumerContext {
8080 * @param maxBytes the maximum number of bytes to consume
8181 * @return the FetchConsumer instance
8282 * @throws IOException covers various communication issues with the NATS
83- * server such as timeout or interruption
83+ * server, such as timeout or interruption
8484 * @throws JetStreamApiException the request had an error related to the data
8585 */
8686 FetchConsumer fetchBytes (int maxBytes ) throws IOException , JetStreamApiException ;
8787
8888 /**
89- * Start a one use Fetch Consumer with complete custom consume options. See {@link FetchConsumer}
89+ * Start a one- use Fetch Consumer with complete custom consume options. See {@link FetchConsumer}
9090 * @param fetchConsumeOptions the custom fetch consume options. See {@link FetchConsumeOptions}
9191 * @return the FetchConsumer instance
9292 * @throws IOException covers various communication issues with the NATS
93- * server such as timeout or interruption
93+ * server, such as timeout or interruption
9494 * @throws JetStreamApiException the request had an error related to the data
9595 */
9696 FetchConsumer fetch (FetchConsumeOptions fetchConsumeOptions ) throws IOException , JetStreamApiException ;
9797
9898 /**
9999 * Start a long-running IterableConsumer with default ConsumeOptions. See {@link IterableConsumer} and {@link ConsumeOptions}
100- * IterableConsumer require the developer call nextMessage.
100+ * IterableConsumer require the developer calls nextMessage.
101101 * @return the IterableConsumer instance
102102 * @throws IOException covers various communication issues with the NATS
103- * server such as timeout or interruption
103+ * server, such as timeout or interruption
104104 * @throws JetStreamApiException the request had an error related to the data
105105 */
106106 IterableConsumer iterate () throws IOException , JetStreamApiException ;
107107
108108 /**
109109 * Start a long-running IterableConsumer with custom ConsumeOptions. See {@link IterableConsumer} and {@link ConsumeOptions}
110- * IterableConsumer requires the developer call nextMessage.
110+ * IterableConsumer requires the developer calls nextMessage.
111111 * @param consumeOptions the custom consume options
112112 * @return the IterableConsumer instance
113113 * @throws IOException covers various communication issues with the NATS
114- * server such as timeout or interruption
114+ * server, such as timeout or interruption
115115 * @throws JetStreamApiException the request had an error related to the data
116116 */
117117 IterableConsumer iterate (ConsumeOptions consumeOptions ) throws IOException , JetStreamApiException ;
@@ -121,7 +121,7 @@ public interface BaseConsumerContext {
121121 * @param handler the MessageHandler used for receiving messages.
122122 * @return the MessageConsumer instance
123123 * @throws IOException covers various communication issues with the NATS
124- * server such as timeout or interruption
124+ * server, such as timeout or interruption
125125 * @throws JetStreamApiException the request had an error related to the data
126126 */
127127 MessageConsumer consume (MessageHandler handler ) throws IOException , JetStreamApiException ;
@@ -130,10 +130,10 @@ public interface BaseConsumerContext {
130130 * Start a long-running MessageConsumer with default ConsumeOptions. See {@link MessageConsumer} and {@link ConsumeOptions}
131131 *
132132 * @param dispatcher The dispatcher to handle this subscription
133- * @param handler the MessageHandler used for receiving messages.
133+ * @param handler the MessageHandler used for receiving messages.
134134 * @return the MessageConsumer instance
135- * @throws IOException covers various communication issues with the NATS
136- * server such as timeout or interruption
135+ * @throws IOException covers various communication issues with the NATS
136+ * server, such as timeout or interruption
137137 * @throws JetStreamApiException the request had an error related to the data
138138 */
139139 MessageConsumer consume (Dispatcher dispatcher , MessageHandler handler ) throws IOException , JetStreamApiException ;
@@ -142,10 +142,10 @@ public interface BaseConsumerContext {
142142 * Start a long-running MessageConsumer with custom ConsumeOptions. See {@link MessageConsumer} and {@link ConsumeOptions}
143143 *
144144 * @param consumeOptions the custom consume options
145- * @param handler the MessageHandler used for receiving messages.
145+ * @param handler the MessageHandler used for receiving messages.
146146 * @return the MessageConsumer instance
147- * @throws IOException covers various communication issues with the NATS
148- * server such as timeout or interruption
147+ * @throws IOException covers various communication issues with the NATS
148+ * server, such as timeout or interruption
149149 * @throws JetStreamApiException the request had an error related to the data
150150 */
151151 MessageConsumer consume (ConsumeOptions consumeOptions , MessageHandler handler ) throws IOException , JetStreamApiException ;
@@ -154,11 +154,11 @@ public interface BaseConsumerContext {
154154 * Start a long-running MessageConsumer with custom ConsumeOptions. See {@link MessageConsumer} and {@link ConsumeOptions}
155155 *
156156 * @param consumeOptions the custom consume options
157- * @param dispatcher The dispatcher to handle this subscription
158- * @param handler the MessageHandler used for receiving messages.
157+ * @param dispatcher the dispatcher to handle this subscription
158+ * @param handler the MessageHandler used for receiving messages.
159159 * @return the MessageConsumer instance
160- * @throws IOException covers various communication issues with the NATS
161- * server such as timeout or interruption
160+ * @throws IOException covers various communication issues with the NATS
161+ * server, such as timeout or interruption
162162 * @throws JetStreamApiException the request had an error related to the data
163163 */
164164 MessageConsumer consume (ConsumeOptions consumeOptions , Dispatcher dispatcher , MessageHandler handler ) throws IOException , JetStreamApiException ;
0 commit comments