Support ADR 60 Ack Policy Flow Control - #1624
Conversation
|
Claude finished @scottf's task in 2m 7s —— View job PR Review: Support ADR 60 Ack Policy Flow Control
SummaryThe changes are minimal, focused, and correct. The One inline comment posted on the Javadoc in Observations
Overall this is a clean, low-risk addition. |
| Explicit("explicit"), | ||
| /** | ||
| * Used by server-managed durable sourcing/mirroring consumers (ADR-60). | ||
| * Behaves like [`AckPolicy::All`] but acknowledgements are driven by |
There was a problem hiding this comment.
The Javadoc here uses Rust-style link syntax. Java Javadoc won't render [AckPolicy::All] as a hyperlink. Consider using the Java equivalent:
| * Behaves like [`AckPolicy::All`] but acknowledgements are driven by | |
| * Behaves like {@link AckPolicy#All} but acknowledgements are driven by |
add AckPolicy FlowControl("flow_control"); FlowControl is the enum name and flow_control is what is actually serialized.
StreamSource and StreamConsumerSource are already supported in Java for quite a while, so nothing to do there.
Java client already processes flow control messages, so again nothing to do there.
Consumer reset already supported and tested 2.14 Reset Consumer #1562
Implement test. Example test is found in the Rust client at https://github.com/nats-io/nats.rs/pull/1581/changes#diff-c9dadc99998c0e5a43970bc3270c8df2f51fa6bf09eccc5aba3e88b17ebe5c6fR4280