From 7e1f7a8b796f0c18417599182a312dd78843da50 Mon Sep 17 00:00:00 2001 From: pernelkanic Date: Sat, 6 May 2023 17:40:08 +0000 Subject: [PATCH] replaced with correct the return types --- .../value/ReactiveTransactionalValueCommands.java | 4 +++- .../io/quarkus/redis/datasource/value/ValueCommands.java | 6 +----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/value/ReactiveTransactionalValueCommands.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/value/ReactiveTransactionalValueCommands.java index ab7bc9768d25f..36c111b18050c 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/value/ReactiveTransactionalValueCommands.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/value/ReactiveTransactionalValueCommands.java @@ -273,7 +273,7 @@ public interface ReactiveTransactionalValueCommands extends ReactiveTransa * @param key the key * @param value the value * @param setArgs the set command extra-arguments - * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + *@return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure * otherwise. In the case of failure, the transaction is discarded. */ Uni setGet(K key, V value, SetArgs setArgs); @@ -286,6 +286,8 @@ public interface ReactiveTransactionalValueCommands extends ReactiveTransa * * @param key the key * @param value the value + *@return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. */ Uni setex(K key, long seconds, V value); diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/value/ValueCommands.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/value/ValueCommands.java index 48ad3e81489f7..3706473482712 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/value/ValueCommands.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/value/ValueCommands.java @@ -195,7 +195,6 @@ public interface ValueCommands extends RedisCommands { * Requires Redis 1.0.1 * * @param map the key/value map containing the items to store - * @return a Uni producing a {@code null} item on success, a failure otherwise **/ void mset(Map map); @@ -219,7 +218,6 @@ public interface ValueCommands extends RedisCommands { * @param key the key * @param milliseconds the duration in ms * @param value the value - * @return a Uni producing a {@code null} item on success, a failure otherwise **/ void psetex(K key, long milliseconds, V value); @@ -231,8 +229,7 @@ public interface ValueCommands extends RedisCommands { * * @param key the key * @param value the value - * @return a Uni producing a {@code null} item on success, a failure otherwise - **/ + **/ void set(K key, V value); /** @@ -244,7 +241,6 @@ public interface ValueCommands extends RedisCommands { * @param key the key * @param value the value * @param setArgs the set command extra-arguments - * @return a Uni producing a {@code null} item on success, a failure otherwise **/ void set(K key, V value, SetArgs setArgs);