-
Notifications
You must be signed in to change notification settings - Fork 68
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 WATCH
and UNWATCH
command
#1539
Conversation
java/client/src/main/java/glide/api/commands/TransactionsBaseCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/TransactionsBaseCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/TransactionsBaseCommands.java
Outdated
Show resolved
Hide resolved
Our review checklist includes the following, are they applicable for UNWATCH or no?
|
Add |
java/client/src/main/java/glide/api/commands/TransactionsBaseCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/TransactionsBaseCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/TransactionsBaseCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/TransactionsBaseCommands.java
Outdated
Show resolved
Hide resolved
1c1e123
to
57f03b6
Compare
@@ -575,4 +578,10 @@ public CompletableFuture<ClusterValue<Object>> fcall( | |||
? ClusterValue.ofSingleValue(handleObjectOrNullResponse(response)) | |||
: ClusterValue.ofMultiValue(handleMapResponse(response))); | |||
} | |||
|
|||
@Override | |||
public CompletableFuture<String> unwatch(@NonNull Route route) { |
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.
TBD do we need this? Does user need this?
java/client/src/main/java/glide/api/commands/TransactionsBaseClusterCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/TransactionsBaseClusterCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/TransactionsBaseClusterCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/TransactionsBaseCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/TransactionsBaseCommands.java
Outdated
Show resolved
Hide resolved
@@ -781,7 +781,8 @@ public static Stream<Arguments> callCrossSlotCommandsWhichShouldPass() { | |||
Arguments.of("del", clusterClient.del(new String[] {"abc", "zxy", "lkn"})), | |||
Arguments.of("mget", clusterClient.mget(new String[] {"abc", "zxy", "lkn"})), | |||
Arguments.of("mset", clusterClient.mset(Map.of("abc", "1", "zxy", "2", "lkn", "3"))), | |||
Arguments.of("touch", clusterClient.touch(new String[] {"abc", "zxy", "lkn"}))); | |||
Arguments.of("touch", clusterClient.touch(new String[] {"abc", "zxy", "lkn"})), | |||
Arguments.of("watch", clusterClient.watch(new String[] {"ghi", "zxy", "lkn"}))); |
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.
<3
4691a96
to
e1611ae
Compare
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 resolve conflicts
b1d3565
to
d2a873b
Compare
java/client/src/main/java/glide/api/commands/TransactionsBaseCommands.java
Show resolved
Hide resolved
2cb8365
to
f605ee6
Compare
* Java: Add `WATCH` and `UNWATCH` command * Addressed PR comments * Added unwatch with route and improved tests * Fixed test based on submodule changes * Addressed PR comments * Added example for watch returning null * Added crossSlot test * Addressed comments * Commented out a test due to a bug * Address PR comments
* Java: Add `WATCH` and `UNWATCH` command * Addressed PR comments * Added unwatch with route and improved tests * Fixed test based on submodule changes * Addressed PR comments * Added example for watch returning null * Added crossSlot test * Addressed comments * Commented out a test due to a bug * Address PR comments
Issue #, if available:
Description of changes:
Implements
WATCH
andUNWATCH
commands in the java client.Note: This is blocked and depends on amazon-contributing/redis-rs#157
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.