@@ -62,7 +62,7 @@ public interface RedisOperations<K, V> {
62
62
*
63
63
* @param <T> return type
64
64
* @param action callback object that specifies the Redis action. Must not be {@literal null}.
65
- * @return a result object returned by the action or {@literal null}
65
+ * @return result of the given {@link RedisCallback#doInRedis(RedisConnection)} invocation.
66
66
*/
67
67
@ Nullable
68
68
<T > T execute (RedisCallback <T > action );
@@ -73,7 +73,7 @@ public interface RedisOperations<K, V> {
73
73
*
74
74
* @param <T> return type
75
75
* @param session session callback. Must not be {@literal null}.
76
- * @return result object returned by the action or {@literal null}
76
+ * @return result of the given {@link SessionCallback#execute(RedisOperations)} invocation.
77
77
*/
78
78
@ Nullable
79
79
<T > T execute (SessionCallback <T > session );
@@ -84,7 +84,9 @@ public interface RedisOperations<K, V> {
84
84
* serializers to deserialize results
85
85
*
86
86
* @param action callback object to execute
87
- * @return list of objects returned by the pipeline
87
+ * @return pipeline results of the given {@link RedisCallback#doInRedis(RedisConnection)} invocation. Results are
88
+ * collected from {@link RedisConnection} calls, {@link RedisCallback#doInRedis(RedisConnection)} itself must
89
+ * return {@literal null}.
88
90
*/
89
91
List <Object > executePipelined (RedisCallback <?> action );
90
92
@@ -95,7 +97,9 @@ public interface RedisOperations<K, V> {
95
97
* @param action callback object to execute
96
98
* @param resultSerializer The Serializer to use for individual values or Collections of values. If any returned
97
99
* values are hashes, this serializer will be used to deserialize both the key and value
98
- * @return list of objects returned by the pipeline
100
+ * @return pipeline results of the given {@link RedisCallback#doInRedis(RedisConnection)} invocation. Results are
101
+ * collected from {@link RedisConnection} calls, {@link RedisCallback#doInRedis(RedisConnection)} itself must
102
+ * return {@literal null}.
99
103
*/
100
104
List <Object > executePipelined (RedisCallback <?> action , RedisSerializer <?> resultSerializer );
101
105
@@ -104,7 +108,9 @@ public interface RedisOperations<K, V> {
104
108
* callback <b>cannot</b> return a non-null value as it gets overwritten by the pipeline.
105
109
*
106
110
* @param session Session callback
107
- * @return list of objects returned by the pipeline
111
+ * @return pipeline results of the given {@link SessionCallback#execute(RedisOperations)} invocation. Results are
112
+ * collected from {@link RedisOperations} calls, {@link SessionCallback#execute(RedisOperations)} itself must
113
+ * return {@literal null}.
108
114
*/
109
115
List <Object > executePipelined (SessionCallback <?> session );
110
116
@@ -115,7 +121,9 @@ public interface RedisOperations<K, V> {
115
121
*
116
122
* @param session Session callback
117
123
* @param resultSerializer
118
- * @return list of objects returned by the pipeline
124
+ * @return pipeline results of the given {@link SessionCallback#execute(RedisOperations)} invocation. Results are
125
+ * collected from {@link RedisOperations} calls, {@link SessionCallback#execute(RedisOperations)} itself must
126
+ * return {@literal null}.
119
127
*/
120
128
List <Object > executePipelined (SessionCallback <?> session , RedisSerializer <?> resultSerializer );
121
129
0 commit comments