Skip to content

Commit 3eb2924

Browse files
nicorutiscottf
andauthored
Message: Fix typo in javadoc (#911)
Co-authored-by: Scott Fauerbach <[email protected]>
1 parent 6f43db6 commit 3eb2924

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* The NATS library uses a Message object to encapsulate incoming messages. Applications
2626
* publish and send requests with raw strings and byte[] but incoming messages can have a few
2727
* values, so they need a wrapper.
28-
*
28+
*
2929
* <p>The byte[] returned by {@link #getData() getData()} is not shared with any library code
3030
* and is safe to manipulate.
3131
*/
@@ -135,7 +135,8 @@ public interface Message {
135135
void nakWithDelay(long nakDelayMillis);
136136

137137
/**
138-
* term prevents this message from every being delivered regardless of maxDeliverCount.
138+
* term instructs the server to stop redelivery of this message without acknowledging it as
139+
* successfully processed.
139140
*/
140141
void term();
141142

@@ -145,7 +146,7 @@ public interface Message {
145146
void inProgress();
146147

147148
/**
148-
* Checks if a message is from Jetstream or is a standard message.
149+
* Checks if a message is from JetStream or is a standard message.
149150
* @return true if the message is from JetStream.
150151
*/
151152
boolean isJetStream();

0 commit comments

Comments
 (0)