@@ -31,8 +31,8 @@ public interface BaseConsumerContext {
31
31
* Read the next message with max wait set to {@value BaseConsumeOptions#DEFAULT_EXPIRES_IN_MILLIS} ms
32
32
* @return the next message or null if the max wait expires
33
33
* @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
36
36
* @throws JetStreamStatusCheckedException an exception representing a status that requires attention,
37
37
* such as the consumer was deleted on the server in the middle of use.
38
38
* @throws JetStreamApiException the request had an error related to the data
@@ -44,8 +44,8 @@ public interface BaseConsumerContext {
44
44
* @param maxWait duration of max wait. Cannot be less than {@value BaseConsumeOptions#MIN_EXPIRES_MILLS} milliseconds.
45
45
* @return the next message or null if the max wait expires
46
46
* @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
49
49
* @throws JetStreamStatusCheckedException an exception representing a status that requires attention,
50
50
* such as the consumer was deleted on the server in the middle of use.
51
51
* @throws JetStreamApiException the request had an error related to the data
@@ -57,8 +57,8 @@ public interface BaseConsumerContext {
57
57
* @param maxWaitMillis the max wait value in milliseconds. Cannot be less than {@value BaseConsumeOptions#MIN_EXPIRES_MILLS} milliseconds.
58
58
* @return the next message or null if the max wait expires
59
59
* @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
62
62
* @throws JetStreamStatusCheckedException an exception representing a status that requires attention,
63
63
* such as the consumer was deleted on the server in the middle of use.
64
64
* @throws JetStreamApiException the request had an error related to the data
@@ -67,10 +67,10 @@ public interface BaseConsumerContext {
67
67
68
68
/**
69
69
* 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
71
71
* @return the FetchConsumer instance
72
72
* @throws IOException covers various communication issues with the NATS
73
- * server such as timeout or interruption
73
+ * server, such as timeout or interruption
74
74
* @throws JetStreamApiException the request had an error related to the data
75
75
*/
76
76
FetchConsumer fetchMessages (int maxMessages ) throws IOException , JetStreamApiException ;
@@ -80,38 +80,38 @@ public interface BaseConsumerContext {
80
80
* @param maxBytes the maximum number of bytes to consume
81
81
* @return the FetchConsumer instance
82
82
* @throws IOException covers various communication issues with the NATS
83
- * server such as timeout or interruption
83
+ * server, such as timeout or interruption
84
84
* @throws JetStreamApiException the request had an error related to the data
85
85
*/
86
86
FetchConsumer fetchBytes (int maxBytes ) throws IOException , JetStreamApiException ;
87
87
88
88
/**
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}
90
90
* @param fetchConsumeOptions the custom fetch consume options. See {@link FetchConsumeOptions}
91
91
* @return the FetchConsumer instance
92
92
* @throws IOException covers various communication issues with the NATS
93
- * server such as timeout or interruption
93
+ * server, such as timeout or interruption
94
94
* @throws JetStreamApiException the request had an error related to the data
95
95
*/
96
96
FetchConsumer fetch (FetchConsumeOptions fetchConsumeOptions ) throws IOException , JetStreamApiException ;
97
97
98
98
/**
99
99
* 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.
101
101
* @return the IterableConsumer instance
102
102
* @throws IOException covers various communication issues with the NATS
103
- * server such as timeout or interruption
103
+ * server, such as timeout or interruption
104
104
* @throws JetStreamApiException the request had an error related to the data
105
105
*/
106
106
IterableConsumer iterate () throws IOException , JetStreamApiException ;
107
107
108
108
/**
109
109
* 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.
111
111
* @param consumeOptions the custom consume options
112
112
* @return the IterableConsumer instance
113
113
* @throws IOException covers various communication issues with the NATS
114
- * server such as timeout or interruption
114
+ * server, such as timeout or interruption
115
115
* @throws JetStreamApiException the request had an error related to the data
116
116
*/
117
117
IterableConsumer iterate (ConsumeOptions consumeOptions ) throws IOException , JetStreamApiException ;
@@ -121,7 +121,7 @@ public interface BaseConsumerContext {
121
121
* @param handler the MessageHandler used for receiving messages.
122
122
* @return the MessageConsumer instance
123
123
* @throws IOException covers various communication issues with the NATS
124
- * server such as timeout or interruption
124
+ * server, such as timeout or interruption
125
125
* @throws JetStreamApiException the request had an error related to the data
126
126
*/
127
127
MessageConsumer consume (MessageHandler handler ) throws IOException , JetStreamApiException ;
@@ -130,10 +130,10 @@ public interface BaseConsumerContext {
130
130
* Start a long-running MessageConsumer with default ConsumeOptions. See {@link MessageConsumer} and {@link ConsumeOptions}
131
131
*
132
132
* @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.
134
134
* @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
137
137
* @throws JetStreamApiException the request had an error related to the data
138
138
*/
139
139
MessageConsumer consume (Dispatcher dispatcher , MessageHandler handler ) throws IOException , JetStreamApiException ;
@@ -142,10 +142,10 @@ public interface BaseConsumerContext {
142
142
* Start a long-running MessageConsumer with custom ConsumeOptions. See {@link MessageConsumer} and {@link ConsumeOptions}
143
143
*
144
144
* @param consumeOptions the custom consume options
145
- * @param handler the MessageHandler used for receiving messages.
145
+ * @param handler the MessageHandler used for receiving messages.
146
146
* @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
149
149
* @throws JetStreamApiException the request had an error related to the data
150
150
*/
151
151
MessageConsumer consume (ConsumeOptions consumeOptions , MessageHandler handler ) throws IOException , JetStreamApiException ;
@@ -154,11 +154,11 @@ public interface BaseConsumerContext {
154
154
* Start a long-running MessageConsumer with custom ConsumeOptions. See {@link MessageConsumer} and {@link ConsumeOptions}
155
155
*
156
156
* @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.
159
159
* @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
162
162
* @throws JetStreamApiException the request had an error related to the data
163
163
*/
164
164
MessageConsumer consume (ConsumeOptions consumeOptions , Dispatcher dispatcher , MessageHandler handler ) throws IOException , JetStreamApiException ;
0 commit comments