Skip to content

Releases: nats-io/nats.java

2.8.0 - Added support for lame duck mode notification

24 Aug 17:19
031b245

Choose a tag to compare

  • Added lame-duck mode support 334

When a server goes into lame-duck mode. The client will send out a connection event.

Example code registering for lame-duck mode.

            Options options = new Options.Builder().server(ts.getURI()).connectionListener(new ConnectionListener() {
                @Override
                public void connectionEvent(Connection conn, Events type) {
                    if (type.equals(Events.LAME_DUCK)) connectLDM.complete(type);
                }
            }).build();

            Connection nc = Nats.connect(options);

Lame-duck mode is for servers in a cluster to tell clients that they will no longer be serving requests.
Clients can get notified of this and gracefully perform some actions.

2.7.0

19 Aug 23:40
d859b6d

Choose a tag to compare

Miscellaneous Updates

Bug Fixes

2.6.8 - reconnect improvements

27 May 23:12
507490d

Choose a tag to compare

2.6.8 - reconnect improvements.

Changed the reconnect logic so it does not try to connect to a server that it just lost the connection to.

With the randomization algorithm, there's a chance the client will immediately try the server it just lost connection with. Move the last connected server to the end of the list when reconnecting.

  • [FIXED] - #309 - Removed some debug printf statements
  • [CHANGED] - Allow disable reconnect buffer by using size of zero
  • [CHANGED] - Added option to set the max unsent size at the writer and fail or discard messages
  • [CHANGED] - Updated build.gradle to not fail if TRAVIS_BRANCH isn't set

Reconnect cleanup

04 Apr 03:11
0a59212

Choose a tag to compare

  • Reconnect cleanup #300
  • [FIXED] Make jwtFile optional in Nats.credentials
  • [FIXED] Javadoc of Message.getSID()
  • Minor readme and documentation fixes

2.6.6

25 Oct 16:13
1874536

Choose a tag to compare

[FIXED] - #274 - Added a check to prevent double event notification
[CHANGED] - #276 - Updated TLS certs to match go client
[FIXED] - #275 - Updated connect to randomize with the same code as reconnect

2.6.5

03 Sep 19:16

Choose a tag to compare

2.6.5 is a test release to check automated maven releases. No code changes effect the running library.

2.6.4

31 Aug 05:26

Choose a tag to compare

2.6.4 is a test release with no code changes but major build changes to support automated release.

2.6.3

31 Aug 00:02
c54f54f

Choose a tag to compare

Bumped version to test automated deploy.

2.6.2

30 Aug 14:51

Choose a tag to compare

Bumped version to replace maven packages built with JDK 11 with ones built with JDK 8

2.6.1

29 Aug 17:20
822841d

Choose a tag to compare

  • [FIXED] - #263 - Added server URLs to connect exception (not to auth exception)
  • [FIXED] - #262 - Added @deprecated as needed
  • [FIXED] - #261 - Added a static credentials implementation that uses char arrays
  • [FIXED] - #260 - Moved to nats-server from gnatsd for testing
  • [FIXED/CHANGED] - #259 - Double authentication errors from a server during reconnect attempts will result in the connection being closed.
  • [FIXED] - #257 - Added connection method to messages that come from subscriptions, dispatchers and requests
  • [FIXED] - #243 - Added check for whitespace in subjects and queue names
  • [FIXED] - Improved a couple flaky tests