Skip to content

Commit 92771e6

Browse files
authored
Preparing for 2.11.0 (#457)
preparing for release 2.11.0
1 parent 60625c3 commit 92771e6

File tree

4 files changed

+64
-1
lines changed

4 files changed

+64
-1
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11

22
# Change Log
33

4+
## Version 2.11.0
5+
6+
#### Issue Bug Fixes
7+
- [FIXED] Issue #340 No connection possible when using multiple servers PR #455 (@scottf)
8+
9+
#### Pull Requests
10+
- [FIXED] PR #451 Header status improvements (@scottf)
11+
- [ENHANCEMENT] PR #452 handle no ack publishing (@scottf)
12+
- [ENHANCEMENT] PR #456 switched to jnats-server-runner library (@scottf)
13+
- [ENHANCEMENT] PR #446 improve cleanup of async responses (@scottf)
14+
15+
#### Issues General Closed
16+
- [NON ISSUE] Issue #298 NatsConnection does not report SSL error (@scottf)
17+
- [WILL NOT IMPLEMENT] Issue #272 Add ability to publish byte arrays with specified offset and length (@scottf)
18+
- [DOCUMENTED] Issue #316 Failure creating a subscription on a (fairly) new connection (@scottf)
19+
- [NON ISSUE] Issue #344 Performance issue when publishing to certain topics (@scottf)
20+
- [WILL NOT IMPLEMENT] Issue #373 Why not netty for networking? (@sasbury)
21+
- [PRE-RELEASE FEATURE REMOVED] Issue #388 In the jetstream subscriber examples... (@scottf)
22+
- [DOCUMENTED] Issue #402 Unable to connect to NATS server via Android Studio
23+
- [DOCUMENTED] Issue #445 NatsConnection.request(Message) does not use Message.replyTo (@scottf)
24+
- [DOCUMENTED] Issue #423 createContext() not documented (@scottf)
25+
426
## Version 2.10.0
527

628
1. JetStream (message and management) support added.

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ All of these methods, as well as the incoming message code use byte arrays for m
186186
send JSON, Strings, YAML, Protocol Buffers, or any other format through NATS to applications written in a wide range of
187187
languages.
188188

189+
#### ReplyTo When Making A Request
190+
191+
The Message object allows you to set a replyTo, but in requests,
192+
the replyTo is reserved for internal use as the address for the
193+
server to respond to the client with the consumer's reply.
194+
189195
### Listening for Incoming Messages
190196
191197
The Java NATS library provides two mechanisms to listen for messages, three if you include the request/reply discussed above.
@@ -317,6 +323,12 @@ See `NatsJsPubWithOptionsUseCases.java` in the JetStream examples for a detailed
317323
318324
See the `NatsJsPubAsync.java` in the JetStream examples for a detailed and runnable example.
319325
326+
#### ReplyTo When Publishing
327+
328+
The Message object allows you to set a replyTo, but in publish requests,
329+
the replyTo is reserved for internal use as the address for the
330+
server to respond to the client with the PublishAck.
331+
320332
### Subscribing
321333
322334
There are two methods of subscribing, **Push** and **Pull** with each variety having its own set of options and abilities.
@@ -497,7 +509,12 @@ NATS supports TLS 1.2. The server can be configured to verify client certificate
497509
Connection nc = Nats.connect(options);
498510
```
499511

500-
If you want to try out these techniques, take a look at the [examples.md](src/examples/java/io/nats/examples/examples.md) for instructions.
512+
If you want to try out these techniques, take a look at the [README.md](src/examples/java/io/nats/examples/README.md) for instructions.
513+
514+
Also, here are some places in the code that may help
515+
https://github.com/nats-io/nats.java/blob/main/src/main/java/io/nats/client/support/SSLUtils.java
516+
https://github.com/nats-io/nats.java/blob/main/src/test/java/io/nats/client/TestSSLUtils.java
517+
501518

502519
### Clusters & Reconnecting
503520

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ enum Status {
184184
* Send a request. The returned future will be completed when the
185185
* response comes back.
186186
*
187+
* <p>The Message object allows you to set a replyTo, but in requests,
188+
* the replyTo is reserved for internal use as the address for the
189+
* server to respond to the client with the consumer's reply.</p>
190+
*
187191
* @param message the message
188192
* @return a Future for the response, which may be cancelled on error or timed out
189193
*/
@@ -207,6 +211,10 @@ enum Status {
207211
* to calling get on the future returned from {@link #request(String, byte[]) request()} with
208212
* the timeout and handling the ExecutionException and TimeoutException.
209213
*
214+
* <p>The Message object allows you to set a replyTo, but in requests,
215+
* the replyTo is reserved for internal use as the address for the
216+
* server to respond to the client with the consumer's reply.</p>
217+
*
210218
* @param message the message
211219
* @param timeout the time to wait for a response
212220
* @return the reply message or null if the timeout is reached

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ public interface JetStream {
8989
*
9090
* where the sender creates a byte array immediately before calling publish.
9191
*
92+
* <p>The Message object allows you to set a replyTo, but in publish requests,
93+
* the replyTo is reserved for internal use as the address for the
94+
* server to respond to the client with the PublishAck.</p>
95+
*
9296
* See {@link #publish(String, byte[]) publish()} for more details on
9397
* publish during reconnect.
9498
*
@@ -113,6 +117,10 @@ public interface JetStream {
113117
*
114118
* where the sender creates a byte array immediately before calling publish.
115119
*
120+
* <p>The Message object allows you to set a replyTo, but in publish requests,
121+
* the replyTo is reserved for internal use as the address for the
122+
* server to respond to the client with the PublishAck.</p>
123+
*
116124
* See {@link #publish(String, byte[]) publish()} for more details on
117125
* publish during reconnect.
118126
*
@@ -202,6 +210,10 @@ public interface JetStream {
202210
* an IOException covers various communication issues with the NATS server such as timeout or interruption
203211
* - or - a JetStreamApiException the request had an error related to the data
204212
*
213+
* <p>The Message object allows you to set a replyTo, but in publish requests,
214+
* the replyTo is reserved for internal use as the address for the
215+
* server to respond to the client with the PublishAck.</p>
216+
*
205217
* @param message the message to send
206218
* @return The future
207219
*/
@@ -227,6 +239,10 @@ public interface JetStream {
227239
* an IOException covers various communication issues with the NATS server such as timeout or interruption
228240
* - or - a JetStreamApiException the request had an error related to the data
229241
*
242+
* <p>The Message object allows you to set a replyTo, but in publish requests,
243+
* the replyTo is reserved for internal use as the address for the
244+
* server to respond to the client with the PublishAck.</p>
245+
*
230246
* @param message the message to publish
231247
* @param options publisher options
232248
* @return The future

0 commit comments

Comments
 (0)