From f6510390681e7ec9fb27a63c788167d5b47f46b4 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 3 Dec 2018 09:28:07 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20RedisTransactionalCommands.exec(=E2=80=A6?= =?UTF-8?q?)=20Javadoc=20#942?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/api/async/RedisTransactionalAsyncCommands.java | 4 +++- .../core/api/reactive/RedisTransactionalReactiveCommands.java | 4 +++- .../io/lettuce/core/api/sync/RedisTransactionalCommands.java | 4 +++- .../io/lettuce/core/api/RedisTransactionalCommands.java | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/lettuce/core/api/async/RedisTransactionalAsyncCommands.java b/src/main/java/io/lettuce/core/api/async/RedisTransactionalAsyncCommands.java index d174f360f9..91c31a1644 100644 --- a/src/main/java/io/lettuce/core/api/async/RedisTransactionalAsyncCommands.java +++ b/src/main/java/io/lettuce/core/api/async/RedisTransactionalAsyncCommands.java @@ -41,7 +41,9 @@ public interface RedisTransactionalAsyncCommands { * * @return List<Object> array-reply each element being the reply to each of the commands in the atomic transaction. * - * When using {@code WATCH}, {@code EXEC} can return a + * When using {@code WATCH}, {@code EXEC} can return a {@link TransactionResult#wasDiscarded discarded + * TransactionResult}. + * @see TransactionResult#wasDiscarded */ RedisFuture exec(); diff --git a/src/main/java/io/lettuce/core/api/reactive/RedisTransactionalReactiveCommands.java b/src/main/java/io/lettuce/core/api/reactive/RedisTransactionalReactiveCommands.java index 12ab08c1e6..5ea1c520c5 100644 --- a/src/main/java/io/lettuce/core/api/reactive/RedisTransactionalReactiveCommands.java +++ b/src/main/java/io/lettuce/core/api/reactive/RedisTransactionalReactiveCommands.java @@ -41,7 +41,9 @@ public interface RedisTransactionalReactiveCommands { * * @return Object array-reply each element being the reply to each of the commands in the atomic transaction. * - * When using {@code WATCH}, {@code EXEC} can return a + * When using {@code WATCH}, {@code EXEC} can return a {@link TransactionResult#wasDiscarded discarded + * TransactionResult}. + * @see TransactionResult#wasDiscarded */ Mono exec(); diff --git a/src/main/java/io/lettuce/core/api/sync/RedisTransactionalCommands.java b/src/main/java/io/lettuce/core/api/sync/RedisTransactionalCommands.java index 6afc54ea4a..0353f48842 100644 --- a/src/main/java/io/lettuce/core/api/sync/RedisTransactionalCommands.java +++ b/src/main/java/io/lettuce/core/api/sync/RedisTransactionalCommands.java @@ -40,7 +40,9 @@ public interface RedisTransactionalCommands { * * @return List<Object> array-reply each element being the reply to each of the commands in the atomic transaction. * - * When using {@code WATCH}, {@code EXEC} can return a + * When using {@code WATCH}, {@code EXEC} can return a {@link TransactionResult#wasDiscarded discarded + * TransactionResult}. + * @see TransactionResult#wasDiscarded */ TransactionResult exec(); diff --git a/src/main/templates/io/lettuce/core/api/RedisTransactionalCommands.java b/src/main/templates/io/lettuce/core/api/RedisTransactionalCommands.java index 9f9c3b4e3f..5482cc137b 100644 --- a/src/main/templates/io/lettuce/core/api/RedisTransactionalCommands.java +++ b/src/main/templates/io/lettuce/core/api/RedisTransactionalCommands.java @@ -40,7 +40,9 @@ public interface RedisTransactionalCommands { * * @return List<Object> array-reply each element being the reply to each of the commands in the atomic transaction. * - * When using {@code WATCH}, {@code EXEC} can return a + * When using {@code WATCH}, {@code EXEC} can return a {@link TransactionResult#wasDiscarded discarded + * TransactionResult}. + * @see TransactionResult#wasDiscarded */ TransactionResult exec();