-
Notifications
You must be signed in to change notification settings - Fork 70
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
Java: Add the XGROUP CREATE
and XGROUP DESTROY
commands
#1557
Java: Add the XGROUP CREATE
and XGROUP DESTROY
commands
#1557
Conversation
* JAVA: Add the XGROUP CREATE and DESTROY command Signed-off-by: Andrew Carbonetto <[email protected]> * Fix XGROUP DESTROY Signed-off-by: Andrew Carbonetto <[email protected]> * Clean up for self-review Signed-off-by: Andrew Carbonetto <[email protected]> * cargo fmt Signed-off-by: Andrew Carbonetto <[email protected]> * Change builder to use constructors Signed-off-by: Andrew Carbonetto <[email protected]> * Add optional javadocs Signed-off-by: Andrew Carbonetto <[email protected]> --------- Signed-off-by: Andrew Carbonetto <[email protected]>
java/client/src/main/java/glide/api/models/commands/stream/StreamGroupOptions.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/models/commands/stream/StreamGroupOptions.java
Show resolved
Hide resolved
Signed-off-by: Andrew Carbonetto <[email protected]>
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.
I think it just needs Spotless. LGTM
Signed-off-by: Andrew Carbonetto <[email protected]>
*/ | ||
@Builder.Default private boolean mkStream = false; | ||
|
||
public static class StreamGroupOptionsBuilder { |
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.
Why do you need 2 builders? lines 30 and 15
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.
This will be the same builder. We're writing this infrastructure to add the makeStream()
signature (without boolean).
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.
this means we can do StreamGroupOptions.builder().makeStream().build();
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.
It is confusing, but "It is not silly if it works" ©
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.
Lombok is the best
java/client/src/main/java/glide/api/commands/StreamBaseCommands.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Andrew Carbonetto <[email protected]>
…o#1557) * Java: Add the `XGROUP CREATE` and `XGROUP DESTROY` commands (#359) * JAVA: Add the XGROUP CREATE and DESTROY command Signed-off-by: Andrew Carbonetto <[email protected]> * Fix XGROUP DESTROY Signed-off-by: Andrew Carbonetto <[email protected]> * Clean up for self-review Signed-off-by: Andrew Carbonetto <[email protected]> * cargo fmt Signed-off-by: Andrew Carbonetto <[email protected]> * Change builder to use constructors Signed-off-by: Andrew Carbonetto <[email protected]> * Add optional javadocs Signed-off-by: Andrew Carbonetto <[email protected]> --------- Signed-off-by: Andrew Carbonetto <[email protected]> * Update options to use builder Signed-off-by: Andrew Carbonetto <[email protected]> * SPOTLESS Signed-off-by: Andrew Carbonetto <[email protected]> * Update doc Signed-off-by: Andrew Carbonetto <[email protected]> --------- Signed-off-by: Andrew Carbonetto <[email protected]>
…o#1557) * Java: Add the `XGROUP CREATE` and `XGROUP DESTROY` commands (#359) * JAVA: Add the XGROUP CREATE and DESTROY command Signed-off-by: Andrew Carbonetto <[email protected]> * Fix XGROUP DESTROY Signed-off-by: Andrew Carbonetto <[email protected]> * Clean up for self-review Signed-off-by: Andrew Carbonetto <[email protected]> * cargo fmt Signed-off-by: Andrew Carbonetto <[email protected]> * Change builder to use constructors Signed-off-by: Andrew Carbonetto <[email protected]> * Add optional javadocs Signed-off-by: Andrew Carbonetto <[email protected]> --------- Signed-off-by: Andrew Carbonetto <[email protected]> * Update options to use builder Signed-off-by: Andrew Carbonetto <[email protected]> * SPOTLESS Signed-off-by: Andrew Carbonetto <[email protected]> * Update doc Signed-off-by: Andrew Carbonetto <[email protected]> --------- Signed-off-by: Andrew Carbonetto <[email protected]>
Issue #, if available:
Description of changes:
Adds the following commands:
https://valkey.io/commands/xgroup-create/
https://valkey.io/commands/xgroup-destroy/
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.