Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support StreamConfiguration creation from JSON #1023

Merged
merged 3 commits into from
Oct 24, 2023

Conversation

senior
Copy link
Contributor

@senior senior commented Oct 24, 2023

This commit adds a public method to StreamConfiguration that allows hydrating a StreamConfiguration via a JSON String. Previously this was only package scoped and used in tests.

senior and others added 2 commits October 24, 2023 08:36
This commit adds a public method to StreamConfiguration that allows
hydrating a StreamConfiguration via a JSON String. Previously this was only
package scoped and used in tests.
src/main/java/io/nats/client/api/StreamConfiguration.java Outdated Show resolved Hide resolved
src/main/java/io/nats/client/api/StreamConfiguration.java Outdated Show resolved Hide resolved
add(METADATA);
add(FIRST_SEQ);
}
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very interesting voodoo here, I like.

@senior senior requested a review from scottf October 24, 2023 15:32
Copy link
Contributor

@scottf scottf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@scottf scottf merged commit 057e0f4 into nats-io:main Oct 24, 2023
1 check passed
@senior senior deleted the stream-configuration-from-json branch October 25, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants