-
Notifications
You must be signed in to change notification settings - Fork 150
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
Manage api constants immutable #408
Conversation
scottf
commented
Feb 11, 2021
•
edited
edited
- management api read with examples
- ApiConstants to share filed name constants and Json patterns
- api objects made immutable
- reusable JsonUtils methods to read fields to simplify construction and support immutability
- ConsumerConfiguration maxWaiting not a field.
- Verified default field values according to jetstream/api/v1 some -1 changes to 0, max_waiting removed, addresses TODOs
private final boolean success; | ||
private final int purged; | ||
|
||
public PurgeResponse(String json) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be public?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
return success; | ||
} | ||
|
||
public int getPurged() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -0,0 +1,103 @@ | |||
package io.nats.client; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License/Copyright
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
private final ZonedDateTime firstTime; | ||
private final ZonedDateTime lastTime; | ||
|
||
public StreamState(String json) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be public?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...have a few questions - minor stuff - overall LGTM!
Having trouble keeping up with how fast you churn out these PRs... :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!