-
Notifications
You must be signed in to change notification settings - Fork 625
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
Usability improvements: New SuperStream builder #2541
Usability improvements: New SuperStream builder #2541
Conversation
builder provide a way to configure: - maxAge - maxLength - maxSegmentSize
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.
Thanks for the contribution!
Please add some tests.
spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/config/SuperStream.java
Show resolved
Hide resolved
spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/config/SuperStream.java
Show resolved
Hide resolved
...rabbit-stream/src/main/java/org/springframework/rabbit/stream/config/SuperStreamBuilder.java
Outdated
Show resolved
Hide resolved
Fix style tests and add a new one for the super stream builder
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.
Good work; thanks!
@@ -37,7 +38,6 @@ | |||
* | |||
* @author Gary Russell |
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.
Please add yourself to the author list.
/** | ||
* Creates a builder for Super Stream. | ||
* | ||
* @param name stream name |
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.
* @param name stream name | |
* @param name stream name |
Remove extra spaces, we don't align param descriptions by column.
|
||
/** | ||
* Set the stream name. | ||
* |
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.
No blank lines in method javadocs (this one and others below).
* @author Sergei Kurenchuk | ||
* @since 3.1 | ||
*/ | ||
public class SuperStreamConfigurationTest { |
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.
public class SuperStreamConfigurationTest { | |
public class SuperStreamConfigurationTests { |
Our convention is ...Tests
.
Also, you mentioned |
Covered x-initial-cluster-size. Fixes after review
Thanks! Merged as 3620f11 |
builder provide a way to configure:
The Issue: #2540