diff --git a/src/main/java/org/springframework/data/redis/cache/BatchStrategies.java b/src/main/java/org/springframework/data/redis/cache/BatchStrategies.java index eb33dc51d..ce2c346c9 100644 --- a/src/main/java/org/springframework/data/redis/cache/BatchStrategies.java +++ b/src/main/java/org/springframework/data/redis/cache/BatchStrategies.java @@ -44,7 +44,7 @@ public abstract class BatchStrategies { * A {@link BatchStrategy} using a single {@code KEYS} and {@code DEL} command to remove all matching keys. * {@code KEYS} scans the entire keyspace of the Redis database and can block the Redis worker thread for a long time * on large keyspaces. - *
+ ** {@code KEYS} is supported for standalone and clustered (sharded) Redis operation modes. * * @return batching strategy using {@code KEYS}. @@ -56,7 +56,7 @@ public abstract class BatchStrategies { /** * A {@link BatchStrategy} using a {@code SCAN} cursors and potentially multiple {@code DEL} commands to remove all * matching keys. This strategy allows a configurable batch size to optimize for scan batching. - *
+ ** Note that using the {@code SCAN} strategy might be not supported on all drivers and Redis operation modes. * * @return batching strategy using {@code SCAN}. diff --git a/src/main/java/org/springframework/data/redis/cache/BatchStrategy.java b/src/main/java/org/springframework/data/redis/cache/BatchStrategy.java index bb9fd46d1..4e4218f54 100644 --- a/src/main/java/org/springframework/data/redis/cache/BatchStrategy.java +++ b/src/main/java/org/springframework/data/redis/cache/BatchStrategy.java @@ -19,9 +19,9 @@ import org.springframework.data.redis.connection.RedisConnection; /** * A {@link BatchStrategy} to be used with {@link RedisCacheWriter}. - *
+ ** Mainly used to clear the cache. - *
+ ** Predefined strategies using the {@link BatchStrategies#keys() KEYS} or {@link BatchStrategies#scan(int) SCAN} * commands can be found in {@link BatchStrategies}. * diff --git a/src/main/java/org/springframework/data/redis/cache/RedisCache.java b/src/main/java/org/springframework/data/redis/cache/RedisCache.java index f820614e0..355b744ee 100644 --- a/src/main/java/org/springframework/data/redis/cache/RedisCache.java +++ b/src/main/java/org/springframework/data/redis/cache/RedisCache.java @@ -39,7 +39,7 @@ import org.springframework.util.ReflectionUtils; /** * {@link org.springframework.cache.Cache} implementation using for Redis as underlying store. - *
+ ** Use {@link RedisCacheManager} to create {@link RedisCache} instances. * * @author Christoph Strobl diff --git a/src/main/java/org/springframework/data/redis/cache/RedisCacheConfiguration.java b/src/main/java/org/springframework/data/redis/cache/RedisCacheConfiguration.java index d2b94cfff..8dd1c09df 100644 --- a/src/main/java/org/springframework/data/redis/cache/RedisCacheConfiguration.java +++ b/src/main/java/org/springframework/data/redis/cache/RedisCacheConfiguration.java @@ -362,6 +362,7 @@ public class RedisCacheConfiguration { *
* This cache manager creates caches by default upon first write. Empty caches are not visible on Redis due to how Redis * represents empty data structures. - *
+ ** Caches requiring a different {@link RedisCacheConfiguration} than the default configuration can be specified via * {@link RedisCacheManagerBuilder#withInitialCacheConfigurations(Map)}. * @@ -170,7 +170,7 @@ public class RedisCacheManager extends AbstractTransactionSupportingCacheManager *
* {@link RedisCacheManager#getMissingCache(String)} returns {@literal null} for any unconfigured
* {@link org.springframework.cache.Cache} instead of a new {@link RedisCache} instance. This allows eg.
* {@link org.springframework.cache.support.CompositeCacheManager} to chime in.
diff --git a/src/main/java/org/springframework/data/redis/connection/BitFieldSubCommands.java b/src/main/java/org/springframework/data/redis/connection/BitFieldSubCommands.java
index 63e47783b..93b4c02ef 100644
--- a/src/main/java/org/springframework/data/redis/connection/BitFieldSubCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/BitFieldSubCommands.java
@@ -113,7 +113,7 @@ public class BitFieldSubCommands implements Iterable
*
* @param node must not be {@literal null}.
* @return {@link Mono} wrapping server information.
diff --git a/src/main/java/org/springframework/data/redis/connection/ReactiveGeoCommands.java b/src/main/java/org/springframework/data/redis/connection/ReactiveGeoCommands.java
index 5ef6c2818..72c453526 100644
--- a/src/main/java/org/springframework/data/redis/connection/ReactiveGeoCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/ReactiveGeoCommands.java
@@ -17,8 +17,6 @@ package org.springframework.data.redis.connection;
import static org.springframework.data.redis.connection.RedisGeoCommands.*;
-import org.springframework.data.redis.domain.geo.GeoReference;
-import org.springframework.data.redis.domain.geo.GeoShape;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -43,6 +41,8 @@ import org.springframework.data.redis.connection.ReactiveRedisConnection.KeyComm
import org.springframework.data.redis.connection.ReactiveRedisConnection.MultiValueResponse;
import org.springframework.data.redis.connection.ReactiveRedisConnection.NumericResponse;
import org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs.Flag;
+import org.springframework.data.redis.domain.geo.GeoReference;
+import org.springframework.data.redis.domain.geo.GeoShape;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
@@ -1279,7 +1279,7 @@ public interface ReactiveGeoCommands {
/**
* Sets the geoset {@literal key}. Constructs a new command instance with all previously configured properties.
*
- * @param member must not be {@literal null}.
+ * @param reference must not be {@literal null}.
* @return a new {@link GeoSearchCommand} with {@literal key} applied.
*/
public GeoSearchCommand at(GeoReference
* Blocks connection until element available or {@code timeout} reached.
*
* @param commands must not be {@literal null}.
diff --git a/src/main/java/org/springframework/data/redis/connection/ReactivePubSubCommands.java b/src/main/java/org/springframework/data/redis/connection/ReactivePubSubCommands.java
index ec847efbc..9f62c180f 100644
--- a/src/main/java/org/springframework/data/redis/connection/ReactivePubSubCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/ReactivePubSubCommands.java
@@ -34,7 +34,7 @@ public interface ReactivePubSubCommands {
/**
* Creates a subscription for this connection. Connections can have multiple {@link ReactiveSubscription}s.
- *
* Use {@link #createSubscription(SubscriptionListener)} to get notified when the subscription completes.
*
* @return the subscription.
@@ -77,7 +77,7 @@ public interface ReactivePubSubCommands {
* Subscribes the connection to the given {@code channels}. Once subscribed, a connection enters listening mode and
* can only subscribe to other channels or unsubscribe. No other commands are accepted until the connection is
* unsubscribed.
- *
* Note that cancellation of the {@link Flux} will unsubscribe from {@code channels}.
*
* @param channels channel names, must not be {@literal null}.
@@ -89,7 +89,7 @@ public interface ReactivePubSubCommands {
* Subscribes the connection to all channels matching the given {@code patterns}. Once subscribed, a connection enters
* listening mode and can only subscribe to other channels or unsubscribe. No other commands are accepted until the
* connection is unsubscribed.
- *
* Note that cancellation of the {@link Flux} will unsubscribe from {@code patterns}.
*
* @param patterns channel name patterns, must not be {@literal null}.
diff --git a/src/main/java/org/springframework/data/redis/connection/ReactiveServerCommands.java b/src/main/java/org/springframework/data/redis/connection/ReactiveServerCommands.java
index 5051c0de0..7e19e2a04 100644
--- a/src/main/java/org/springframework/data/redis/connection/ReactiveServerCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/ReactiveServerCommands.java
@@ -96,7 +96,6 @@ public interface ReactiveServerCommands {
*
*
* @return {@link Mono} wrapping server information.
* @see Redis Documentation: INFO
diff --git a/src/main/java/org/springframework/data/redis/connection/ReactiveSetCommands.java b/src/main/java/org/springframework/data/redis/connection/ReactiveSetCommands.java
index ee9adcfdc..6bbd9df8c 100644
--- a/src/main/java/org/springframework/data/redis/connection/ReactiveSetCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/ReactiveSetCommands.java
@@ -576,7 +576,7 @@ public interface ReactiveSetCommands {
/**
* Creates a new {@link SMIsMemberCommand} given one or more {@literal values}.
*
- * @param value must not be {@literal null}.
+ * @param values must not be {@literal null}.
* @return a new {@link SMIsMemberCommand} for a {@literal value}.
*/
public static SMIsMemberCommand values(List
* A reactive Redis connection can have multiple subscriptions. If two or more subscriptions subscribe to the same
* target (channel/pattern) and one unsubscribes, then the other one will no longer receive messages for the target due
* to how Redis handled Pub/Sub subscription.
@@ -103,7 +103,7 @@ public interface ReactiveSubscription {
/**
* Retrieve the message stream emitting {@link Message messages}. The resulting message stream contains only messages
* for subscribed and registered {@link #getChannels() channels} and {@link #getPatterns() patterns}.
- *
* Stream publishing uses {@link reactor.core.publisher.ConnectableFlux} turning the stream into a hot sequence.
* Emission is paused if there is no demand. Messages received in that time are buffered. This stream terminates
* either if all subscribers unsubscribe or if this {@link Subscription} is {@link #cancel() is terminated}.
diff --git a/src/main/java/org/springframework/data/redis/connection/ReactiveZSetCommands.java b/src/main/java/org/springframework/data/redis/connection/ReactiveZSetCommands.java
index 367120cf9..90e3cc904 100644
--- a/src/main/java/org/springframework/data/redis/connection/ReactiveZSetCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/ReactiveZSetCommands.java
@@ -1540,7 +1540,7 @@ public interface ReactiveZSetCommands {
* Applies a {@link Duration timeout}. Constructs a new command instance with all previously configured properties.
*
* @param timeout value.
- * @param timeout must not be {@literal null}.
+ * @param timeUnit must not be {@literal null}.
* @return a new {@link BZPopCommand} with {@link Duration timeout} applied.
*/
public BZPopCommand blockingFor(long timeout, TimeUnit timeUnit) {
diff --git a/src/main/java/org/springframework/data/redis/connection/RedisClusterConfiguration.java b/src/main/java/org/springframework/data/redis/connection/RedisClusterConfiguration.java
index feabb2410..8a17a3184 100644
--- a/src/main/java/org/springframework/data/redis/connection/RedisClusterConfiguration.java
+++ b/src/main/java/org/springframework/data/redis/connection/RedisClusterConfiguration.java
@@ -67,8 +67,7 @@ public class RedisClusterConfiguration implements RedisConfiguration, ClusterCon
* clusterHostAndPorts[0] = 127.0.0.1:23679
* clusterHostAndPorts[1] = 127.0.0.1:23680 ...
*
- *
- *
* Blocks connection until element available or {@code timeout} reached.
*
* @param sourceKey must not be {@literal null}.
diff --git a/src/main/java/org/springframework/data/redis/connection/RedisPassword.java b/src/main/java/org/springframework/data/redis/connection/RedisPassword.java
index f9dba8189..dadaed582 100644
--- a/src/main/java/org/springframework/data/redis/connection/RedisPassword.java
+++ b/src/main/java/org/springframework/data/redis/connection/RedisPassword.java
@@ -27,9 +27,9 @@ import org.springframework.util.StringUtils;
/**
* Value object which may or may not contain a Redis password.
- *
* If a password is present, {@code isPresent()} will return {@code true} and {@code get()} will return the value.
- *
* The password is stored as character array.
*
* @author Mark Paluch
@@ -109,7 +109,7 @@ public class RedisPassword {
/**
* Map the password using a {@link Function} and return a {@link Optional} containing the mapped value.
- *
* Absent passwords return a {@link Optional#empty()}.
*
* @param mapper must not be {@literal null}.
@@ -124,7 +124,7 @@ public class RedisPassword {
/**
* Adopt the password to {@link Optional} containing the password value.
- *
* Absent passwords return a {@link Optional#empty()}.
*
* @return the {@link Optional} containing the password value.
diff --git a/src/main/java/org/springframework/data/redis/connection/RedisSentinelConfiguration.java b/src/main/java/org/springframework/data/redis/connection/RedisSentinelConfiguration.java
index c4e07653f..a758f8a36 100644
--- a/src/main/java/org/springframework/data/redis/connection/RedisSentinelConfiguration.java
+++ b/src/main/java/org/springframework/data/redis/connection/RedisSentinelConfiguration.java
@@ -67,8 +67,7 @@ public class RedisSentinelConfiguration implements RedisConfiguration, SentinelC
*
*
*
* @return {@literal null} when used in pipeline / transaction.
* @see Redis Documentation: INFO
diff --git a/src/main/java/org/springframework/data/redis/connection/RedisStreamCommands.java b/src/main/java/org/springframework/data/redis/connection/RedisStreamCommands.java
index 7f50913c6..2efb2d9b5 100644
--- a/src/main/java/org/springframework/data/redis/connection/RedisStreamCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/RedisStreamCommands.java
@@ -87,9 +87,8 @@ public interface RedisStreamCommands {
}
/**
- * Append the given {@link MapRecord record} to the stream stored at {@link Record#getStream()}.
* Use {@link Expiration#seconds(long)} for {@code EX}.
*
* @see Redis Documentation: MULTI
*/
diff --git a/src/main/java/org/springframework/data/redis/connection/RedisZSetCommands.java b/src/main/java/org/springframework/data/redis/connection/RedisZSetCommands.java
index 9c299a797..541e7dc81 100644
--- a/src/main/java/org/springframework/data/redis/connection/RedisZSetCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/RedisZSetCommands.java
@@ -577,7 +577,7 @@ public interface RedisZSetCommands {
* @param key must not be {@literal null}.
* @param score the score.
* @param value the value.
- * @param args must not be {@literal null} use {@link ZAddArgs#none()} instead.
+ * @param args must not be {@literal null} use {@link ZAddArgs#empty()} instead.
* @return {@literal null} when used in pipeline / transaction.
* @since 2.5
* @see Redis Documentation: ZADD
@@ -604,7 +604,7 @@ public interface RedisZSetCommands {
*
* @param key must not be {@literal null}.
* @param tuples must not be {@literal null}.
- * @param args must not be {@literal null} use {@link ZAddArgs#none()} instead.
+ * @param args must not be {@literal null} use {@link ZAddArgs#empty()} instead.
* @return {@literal null} when used in pipeline / transaction.
* @since 2.5
* @see Redis Documentation: ZADD
@@ -1308,7 +1308,6 @@ public interface RedisZSetCommands {
/**
* Union sorted {@code sets}.
*
- * @param destKey must not be {@literal null}.
* @param sets must not be {@literal null}.
* @return {@literal null} when used in pipeline / transaction.
* @since 2.6
@@ -1320,7 +1319,6 @@ public interface RedisZSetCommands {
/**
* Union sorted {@code sets}.
*
- * @param destKey must not be {@literal null}.
* @param sets must not be {@literal null}.
* @return {@literal null} when used in pipeline / transaction.
* @since 2.6
diff --git a/src/main/java/org/springframework/data/redis/connection/SortParameters.java b/src/main/java/org/springframework/data/redis/connection/SortParameters.java
index 819770bb9..9dee5e4bf 100644
--- a/src/main/java/org/springframework/data/redis/connection/SortParameters.java
+++ b/src/main/java/org/springframework/data/redis/connection/SortParameters.java
@@ -72,17 +72,17 @@ public interface SortParameters {
Boolean isAlphabetic();
/**
- * Returns the pattern (if set) for sorting by external keys (BY). Can be null if nothing is specified.
+ * Returns the pattern (if set) for sorting by external keys ({@code BY}). Can be null if nothing is specified.
*
- * @return BY pattern. {@literal null} if not set.
+ * @return {@code BY} pattern. {@literal null} if not set.
*/
@Nullable
byte[] getByPattern();
/**
- * Returns the pattern (if set) for retrieving external keys (GET). Can be null if nothing is specified.
+ * Returns the pattern (if set) for retrieving external keys ({@code GET}). Can be null if nothing is specified.
*
- * @return GET pattern. {@literal null} if not set.
+ * @return {@code GET} pattern. {@literal null} if not set.
*/
@Nullable
byte[][] getGetPattern();
diff --git a/src/main/java/org/springframework/data/redis/connection/StringRedisConnection.java b/src/main/java/org/springframework/data/redis/connection/StringRedisConnection.java
index d4640e886..11e6a1825 100644
--- a/src/main/java/org/springframework/data/redis/connection/StringRedisConnection.java
+++ b/src/main/java/org/springframework/data/redis/connection/StringRedisConnection.java
@@ -144,7 +144,7 @@ public interface StringRedisConnection extends RedisConnection {
* @param replace whether to replace existing keys.
* @return {@literal null} when used in pipeline / transaction.
* @see Redis Documentation: COPY
- * @see RedisKeyCommands#copy(byte[], byte[])
+ * @see RedisKeyCommands#copy(byte[], byte[], boolean)
*/
Boolean copy(String sourceKey, String targetKey, boolean replace);
@@ -1224,7 +1224,7 @@ public interface StringRedisConnection extends RedisConnection {
* @param key must not be {@literal null}.
* @param score must not be {@literal null}.
* @param value must not be {@literal null}.
- * @param args must not be {@literal null} use {@link ZAddArgs#none()} instead.
+ * @param args must not be {@literal null} use {@link ZAddArgs#empty()} instead.
* @return {@literal null} when used in pipeline / transaction.
* @since 2.5
* @see Redis Documentation: ZADD
@@ -1249,7 +1249,7 @@ public interface StringRedisConnection extends RedisConnection {
*
* @param key must not be {@literal null}.
* @param tuples must not be {@literal null}.
- * @param args must not be {@literal null} use {@link ZAddArgs#none()} instead.
+ * @param args must not be {@literal null} use {@link ZAddArgs#empty()} instead.
* @return {@literal null} when used in pipeline / transaction.
* @since 2.5
* @see Redis Documentation: ZADD
@@ -1792,7 +1792,6 @@ public interface StringRedisConnection extends RedisConnection {
/**
* Union sorted {@code sets}.
*
- * @param destKey must not be {@literal null}.
* @param sets must not be {@literal null}.
* @return {@literal null} when used in pipeline / transaction.
* @since 2.6
@@ -1804,7 +1803,6 @@ public interface StringRedisConnection extends RedisConnection {
/**
* Union sorted {@code sets}.
*
- * @param destKey must not be {@literal null}.
* @param sets must not be {@literal null}.
* @return {@literal null} when used in pipeline / transaction.
* @since 2.6
@@ -1935,7 +1933,7 @@ public interface StringRedisConnection extends RedisConnection {
*
* @param key must not be {@literal null}.
* @param range must not be {@literal null}.
- * @param range can be {@literal null}.
+ * @param limit can be {@literal null}.
* @return
* @since 1.6
* @see Redis Documentation: ZRANGEBYLEX
@@ -1971,12 +1969,12 @@ public interface StringRedisConnection extends RedisConnection {
}
/**
- * Get all the elements in {@link Range} from the sorted set at {@literal key} in reversed lexicographical ordering. Result is
- * limited via {@link Limit}.
+ * Get all the elements in {@link Range} from the sorted set at {@literal key} in reversed lexicographical ordering.
+ * Result is limited via {@link Limit}.
*
* @param key must not be {@literal null}.
* @param range must not be {@literal null}.
- * @param range can be {@literal null}.
+ * @param limit must not be {@literal null}.
* @return
* @since 2.4
* @see Redis Documentation: ZREVRANGEBYLEX
diff --git a/src/main/java/org/springframework/data/redis/connection/SubscriptionListener.java b/src/main/java/org/springframework/data/redis/connection/SubscriptionListener.java
index fe93c9dee..1d00bf9cc 100644
--- a/src/main/java/org/springframework/data/redis/connection/SubscriptionListener.java
+++ b/src/main/java/org/springframework/data/redis/connection/SubscriptionListener.java
@@ -17,7 +17,7 @@ package org.springframework.data.redis.connection;
/**
* Listener for subscription notifications.
- *
* Subscription notifications are reported by Redis as confirmation for subscribe and unsubscribe operations for
* channels and patterns.
*
diff --git a/src/main/java/org/springframework/data/redis/connection/jedis/JedisClientConfiguration.java b/src/main/java/org/springframework/data/redis/connection/jedis/JedisClientConfiguration.java
index de35a5105..8c5b5592d 100644
--- a/src/main/java/org/springframework/data/redis/connection/jedis/JedisClientConfiguration.java
+++ b/src/main/java/org/springframework/data/redis/connection/jedis/JedisClientConfiguration.java
@@ -33,7 +33,7 @@ import org.springframework.util.Assert;
/**
* Redis client configuration for jedis. This configuration provides optional configuration elements such as
* {@link SSLSocketFactory} and {@link JedisPoolConfig} specific to jedis client features.
- *
* Providing optional elements allows a more specific configuration of the client:
*
* Applies only to single node Redis. Sentinel and Cluster modes use always connection-pooling regardless of the
* pooling setting.
*
diff --git a/src/main/java/org/springframework/data/redis/connection/jedis/JedisConnectionFactory.java b/src/main/java/org/springframework/data/redis/connection/jedis/JedisConnectionFactory.java
index f7af5cde4..272daa543 100644
--- a/src/main/java/org/springframework/data/redis/connection/jedis/JedisConnectionFactory.java
+++ b/src/main/java/org/springframework/data/redis/connection/jedis/JedisConnectionFactory.java
@@ -702,7 +702,7 @@ public class JedisConnectionFactory implements InitializingBean, DisposableBean,
/**
* Indicates the use of a connection pool.
- *
* Applies only to single node Redis. Sentinel and Cluster modes use always connection-pooling regardless of the
* pooling setting.
*
diff --git a/src/main/java/org/springframework/data/redis/connection/jedis/StreamConverters.java b/src/main/java/org/springframework/data/redis/connection/jedis/StreamConverters.java
index f95661edc..984c90eb8 100644
--- a/src/main/java/org/springframework/data/redis/connection/jedis/StreamConverters.java
+++ b/src/main/java/org/springframework/data/redis/connection/jedis/StreamConverters.java
@@ -40,7 +40,7 @@ import org.springframework.data.redis.connection.stream.StreamRecords;
/**
* Converters for Redis Stream-specific types.
- *
* Converters typically convert between value objects/argument objects retaining the actual types of values (i.e. no
* serialization/deserialization happens here).
*
diff --git a/src/main/java/org/springframework/data/redis/connection/lettuce/DefaultLettucePool.java b/src/main/java/org/springframework/data/redis/connection/lettuce/DefaultLettucePool.java
index aebc4b35f..3a5d18b01 100644
--- a/src/main/java/org/springframework/data/redis/connection/lettuce/DefaultLettucePool.java
+++ b/src/main/java/org/springframework/data/redis/connection/lettuce/DefaultLettucePool.java
@@ -64,7 +64,7 @@ public class DefaultLettucePool implements LettucePool, InitializingBean {
public DefaultLettucePool() {}
/**
- * Uses the {@link Config} and {@link RedisClient} defaults for configuring the connection pool
+ * Uses the {@link GenericObjectPoolConfig} defaults for configuring the connection pool
*
* @param hostName The Redis host
* @param port The Redis port
diff --git a/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnectionFactory.java b/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnectionFactory.java
index cd2463f80..a7fb2c196 100644
--- a/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnectionFactory.java
+++ b/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnectionFactory.java
@@ -864,7 +864,7 @@ public class LettuceConnectionFactory
* Returns the native {@link AbstractRedisClient} used by this instance. The client is initialized as part of
* {@link #afterPropertiesSet() the bean initialization lifecycle} and only available when this connection factory is
* initialized.
- *
* Depending on the configuration, the client can be either {@link RedisClient} or {@link RedisClusterClient}.
*
* @return the native {@link AbstractRedisClient}. Can be {@literal null} if not initialized.
@@ -881,7 +881,7 @@ public class LettuceConnectionFactory
* Returns the native {@link AbstractRedisClient} used by this instance. The client is initialized as part of
* {@link #afterPropertiesSet() the bean initialization lifecycle} and only available when this connection factory is
* initialized. Throws {@link IllegalStateException} if not yet initialized.
- *
* Depending on the configuration, the client can be either {@link RedisClient} or {@link RedisClusterClient}.
*
* @return the native {@link AbstractRedisClient}.
diff --git a/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnectionProvider.java b/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnectionProvider.java
index b81618938..0db9b43a0 100644
--- a/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnectionProvider.java
+++ b/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnectionProvider.java
@@ -23,13 +23,13 @@ import java.util.concurrent.CompletionStage;
/**
* Defines a provider for Lettuce connections.
- *
* This interface is typically used to encapsulate a native factory which returns a {@link StatefulConnection
* connection} of on each invocation.
- *
* Connection providers may create a new connection on each invocation or return pooled instances. Each obtained
* connection must be released through its connection provider to allow disposal or release back to the pool.
- *
* Connection providers are usually associated with a {@link io.lettuce.core.codec.RedisCodec} to create connections
* with an appropriate codec.
*
diff --git a/src/main/java/org/springframework/data/redis/connection/lettuce/LettucePoolingConnectionProvider.java b/src/main/java/org/springframework/data/redis/connection/lettuce/LettucePoolingConnectionProvider.java
index 61a7747c3..bd54c1458 100644
--- a/src/main/java/org/springframework/data/redis/connection/lettuce/LettucePoolingConnectionProvider.java
+++ b/src/main/java/org/springframework/data/redis/connection/lettuce/LettucePoolingConnectionProvider.java
@@ -42,11 +42,11 @@ import org.springframework.util.Assert;
/**
* {@link LettuceConnectionProvider} with connection pooling support. This connection provider holds multiple pools (one
* per connection type and allocation type (synchronous/asynchronous)) for contextualized connection allocation.
- *
* Each allocated connection is tracked and to be returned into the pool which created the connection. Instances of this
* class require {@link #destroy() disposal} to de-allocate lingering connections that were not returned to the pool and
* to close the pools.
- *
* This provider maintains separate pools due to the allocation nature (synchronous/asynchronous). Asynchronous
* connection pooling requires a non-blocking allocation API. Connections requested asynchronously can be returned
* synchronously and vice versa. A connection obtained synchronously is returned to the synchronous pool even if
diff --git a/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceReactiveSubscription.java b/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceReactiveSubscription.java
index 12c782138..171af6efe 100644
--- a/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceReactiveSubscription.java
+++ b/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceReactiveSubscription.java
@@ -254,7 +254,7 @@ class LettuceReactiveSubscription implements ReactiveSubscription {
* Create a message stream from connect {@link Function}. Multiple calls to this method are lock-free synchronized.
* The first successful caller creates the actual stream. Other concurrent callers that do not pass the
* synchronization use the stream created by the first successful caller.
- *
* The stream registers a disposal function upon subscription for external {@link #terminate() termination}.
*
* @param connectFunction
diff --git a/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceScanCursor.java b/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceScanCursor.java
index cecbbe777..d53dd5bd2 100644
--- a/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceScanCursor.java
+++ b/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceScanCursor.java
@@ -25,7 +25,7 @@ import org.springframework.lang.Nullable;
/**
* Lettuce-specific {@link ScanCursor} extension that maintains the cursor state that is required for stateful-scanning
* across a Redis Cluster.
- *
* The cursor state uses Lettuce's stateful {@link io.lettuce.core.ScanCursor} to keep track of scanning progress.
*
* @author Mark Paluch
diff --git a/src/main/java/org/springframework/data/redis/connection/lettuce/StreamConverters.java b/src/main/java/org/springframework/data/redis/connection/lettuce/StreamConverters.java
index 48c429f87..58436d69c 100644
--- a/src/main/java/org/springframework/data/redis/connection/lettuce/StreamConverters.java
+++ b/src/main/java/org/springframework/data/redis/connection/lettuce/StreamConverters.java
@@ -42,7 +42,7 @@ import org.springframework.util.NumberUtils;
/**
* Converters for Redis Stream-specific types.
- *
* Converters typically convert between value objects/argument objects retaining the actual types of values (i.e. no
* serialization/deserialization happens here).
*
diff --git a/src/main/java/org/springframework/data/redis/connection/stream/ByteBufferRecord.java b/src/main/java/org/springframework/data/redis/connection/stream/ByteBufferRecord.java
index 14484a4c3..4ad32de0e 100644
--- a/src/main/java/org/springframework/data/redis/connection/stream/ByteBufferRecord.java
+++ b/src/main/java/org/springframework/data/redis/connection/stream/ByteBufferRecord.java
@@ -94,7 +94,7 @@ public interface ByteBufferRecord extends MapRecord
*
* @author Costin Leau
* @author Christoph Strobl
diff --git a/src/main/java/org/springframework/data/redis/core/BoundListOperations.java b/src/main/java/org/springframework/data/redis/core/BoundListOperations.java
index 7d21a8fe0..d26017cdb 100644
--- a/src/main/java/org/springframework/data/redis/core/BoundListOperations.java
+++ b/src/main/java/org/springframework/data/redis/core/BoundListOperations.java
@@ -159,7 +159,7 @@ public interface BoundListOperations
* Blocks connection until element available or {@code timeout} reached.
*
* @param from must not be {@literal null}.
@@ -177,7 +177,7 @@ public interface BoundListOperations
* Blocks connection until element available or {@code timeout} reached.
*
* @param from must not be {@literal null}.
diff --git a/src/main/java/org/springframework/data/redis/core/BoundSetOperations.java b/src/main/java/org/springframework/data/redis/core/BoundSetOperations.java
index 0ef9a697d..91e5e4d56 100644
--- a/src/main/java/org/springframework/data/redis/core/BoundSetOperations.java
+++ b/src/main/java/org/springframework/data/redis/core/BoundSetOperations.java
@@ -92,7 +92,6 @@ public interface BoundSetOperations
- * Typically used by {@link RedisTemplate} sort methods.
+ * Typically used by {@link RedisTemplate} {@code sort} methods.
*
* @author Costin Leau
*/
diff --git a/src/main/java/org/springframework/data/redis/core/Cursor.java b/src/main/java/org/springframework/data/redis/core/Cursor.java
index c75a7448d..61731ea8e 100644
--- a/src/main/java/org/springframework/data/redis/core/Cursor.java
+++ b/src/main/java/org/springframework/data/redis/core/Cursor.java
@@ -20,11 +20,11 @@ import org.springframework.data.util.CloseableIterator;
/**
* Cursor abstraction to scan over the keyspace or elements within a data structure using a variant of a {@code SCAN}
* command.
- *
* Using a Java 8 {@link #stream() java.util.stream.Stream} allows to apply additional
- * {@link java.util.stream.Stream#filter(java.util.function.Predicate) filters} and {@link java.util.stream.Stream#limit(long) limits} to
- * the underlying {@link Cursor}.
- *
* Make sure to {@link CloseableIterator#close() close} the cursor when done as this allows implementations to clean up
* any resources they need to keep open to iterate over elements (eg. by using a try-with-resource statement).
*
diff --git a/src/main/java/org/springframework/data/redis/core/HashMapperProvider.java b/src/main/java/org/springframework/data/redis/core/HashMapperProvider.java
index 9f6e6b935..54db980c8 100644
--- a/src/main/java/org/springframework/data/redis/core/HashMapperProvider.java
+++ b/src/main/java/org/springframework/data/redis/core/HashMapperProvider.java
@@ -19,7 +19,7 @@ import org.springframework.data.redis.hash.HashMapper;
/**
* Function that returns a {@link HashMapper} for a given {@link Class type}.
- *
* Implementors of this interface can return a generic or a specific {@link HashMapper} implementation, depending on the
* serialization strategy for the requested {@link Class target type}.
*
diff --git a/src/main/java/org/springframework/data/redis/core/ListOperations.java b/src/main/java/org/springframework/data/redis/core/ListOperations.java
index 73d8a4888..ae2c09473 100644
--- a/src/main/java/org/springframework/data/redis/core/ListOperations.java
+++ b/src/main/java/org/springframework/data/redis/core/ListOperations.java
@@ -277,7 +277,7 @@ public interface ListOperations
* Blocks connection until element available or {@code timeout} reached.
*
* @param from must not be {@literal null}.
@@ -303,7 +303,7 @@ public interface ListOperations
* Blocks connection until element available or {@code timeout} reached.
*
* @param sourceKey must not be {@literal null}.
@@ -329,7 +329,7 @@ public interface ListOperations
* Blocks connection until element available or {@code timeout} reached.
*
* @param sourceKey must not be {@literal null}.
diff --git a/src/main/java/org/springframework/data/redis/core/ReactiveListOperations.java b/src/main/java/org/springframework/data/redis/core/ReactiveListOperations.java
index efcb764c9..363323583 100644
--- a/src/main/java/org/springframework/data/redis/core/ReactiveListOperations.java
+++ b/src/main/java/org/springframework/data/redis/core/ReactiveListOperations.java
@@ -209,7 +209,7 @@ public interface ReactiveListOperations
* Blocks connection until element available or {@code timeout} reached.
*
* @param from must not be {@literal null}.
@@ -234,7 +234,7 @@ public interface ReactiveListOperations
* Blocks connection until element available or {@code timeout} reached.
*
* @param sourceKey must not be {@literal null}.
diff --git a/src/main/java/org/springframework/data/redis/core/ReactiveRedisSessionCallback.java b/src/main/java/org/springframework/data/redis/core/ReactiveRedisSessionCallback.java
index bf55835ac..85cefb6a4 100644
--- a/src/main/java/org/springframework/data/redis/core/ReactiveRedisSessionCallback.java
+++ b/src/main/java/org/springframework/data/redis/core/ReactiveRedisSessionCallback.java
@@ -23,7 +23,7 @@ import org.springframework.data.redis.connection.ReactiveRedisConnection;
* Generic callback interface for code that wants to use the same {@link ReactiveRedisConnection} avoiding connection
* allocation overhead upon each Template API method call. Allows to execute any number of operations on a single
* {@link ReactiveRedisConnection}, using any type and number of commands.
- *
* This is particularly useful for issuing multiple calls on the same connection.
*
* @param
* Allows for returning a result object created within the callback, i.e. a domain object or a collection of domain
* objects.
*
diff --git a/src/main/java/org/springframework/data/redis/core/ReactiveRedisTemplate.java b/src/main/java/org/springframework/data/redis/core/ReactiveRedisTemplate.java
index 523404ad4..0997e8452 100644
--- a/src/main/java/org/springframework/data/redis/core/ReactiveRedisTemplate.java
+++ b/src/main/java/org/springframework/data/redis/core/ReactiveRedisTemplate.java
@@ -49,10 +49,10 @@ import org.springframework.util.ClassUtils;
/**
* Central abstraction for reactive Redis data access implementing {@link ReactiveRedisOperations}.
- *
* Performs automatic serialization/deserialization between the given objects and the underlying binary data in the
* Redis store.
- *
* Note that while the template is generified, it is up to the serializers/deserializers to properly convert the given
* Objects to and from binary data.
*
diff --git a/src/main/java/org/springframework/data/redis/core/ReactiveSetOperations.java b/src/main/java/org/springframework/data/redis/core/ReactiveSetOperations.java
index c18929d6d..3070956a9 100644
--- a/src/main/java/org/springframework/data/redis/core/ReactiveSetOperations.java
+++ b/src/main/java/org/springframework/data/redis/core/ReactiveSetOperations.java
@@ -105,7 +105,7 @@ public interface ReactiveSetOperations
*
* @see Redis Documentation: MULTI
*/
@@ -580,7 +579,6 @@ public interface RedisOperations
* Performs automatic serialization/deserialization between the given objects and the underlying binary data in the
* Redis store. By default, it uses Java serialization for its objects (through {@link JdkSerializationRedisSerializer}
* ). For String intensive operations consider the dedicated {@link StringRedisTemplate}.
- *
* The central method is execute, supporting Redis access code implementing the {@link RedisCallback} interface. It
* provides {@link RedisConnection} handling such that neither the {@link RedisCallback} implementation nor the calling
* code needs to explicitly care about retrieving/closing Redis connections, or handling Connection lifecycle
* exceptions. For typical single step actions, there are various convenience methods.
- *
* Once configured, this class is thread-safe.
- *
* Note that while the template is generified, it is up to the serializers/deserializers to properly convert the given
* Objects to and from binary data.
- *
* This is the central class in Redis support.
*
* @author Costin Leau
@@ -83,7 +83,6 @@ import org.springframework.util.CollectionUtils;
* @author Mark Paluch
* @author Denis Zavedeev
* @author ihaohong
- *
* @param
* This utility can use generic a {@link HashMapper} or adapt specifically to {@link ObjectHashMapper}'s requirement to
* convert incoming data into byte arrays. This class can be subclassed to override template methods for specific object
* mapping strategies.
diff --git a/src/main/java/org/springframework/data/redis/core/StringRedisTemplate.java b/src/main/java/org/springframework/data/redis/core/StringRedisTemplate.java
index 65717759f..1f99fcf94 100644
--- a/src/main/java/org/springframework/data/redis/core/StringRedisTemplate.java
+++ b/src/main/java/org/springframework/data/redis/core/StringRedisTemplate.java
@@ -20,13 +20,12 @@ import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.connection.StringRedisConnection;
import org.springframework.data.redis.serializer.RedisSerializer;
-import org.springframework.data.redis.serializer.StringRedisSerializer;
/**
* String-focused extension of RedisTemplate. Since most operations against Redis are String based, this class provides
* a dedicated class that minimizes configuration of its more generic {@link RedisTemplate template} especially in terms
* of serializers.
- *
* Note that this template exposes the {@link RedisConnection} used by the {@link RedisCallback} as a
* {@link StringRedisConnection}.
*
diff --git a/src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java b/src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java
index f7d0bdd17..9408d22e3 100644
--- a/src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java
+++ b/src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java
@@ -80,8 +80,8 @@ import org.springframework.util.comparator.NullSafeComparator;
* @Id String id;
* String firstname;
*
- * List
* Provides template support and callback for low-level access.
*/
@org.springframework.lang.NonNullApi
diff --git a/src/main/java/org/springframework/data/redis/core/types/Expiration.java b/src/main/java/org/springframework/data/redis/core/types/Expiration.java
index cba082ad6..9fa489df1 100644
--- a/src/main/java/org/springframework/data/redis/core/types/Expiration.java
+++ b/src/main/java/org/springframework/data/redis/core/types/Expiration.java
@@ -128,7 +128,7 @@ public class Expiration {
/**
* Obtain an {@link Expiration} that indicates to keep the existing one. Eg. when sending a {@code SET} command.
- *
* NOTE: Please follow the documentation of the individual commands to see if {@link #keepTtl()} is
* applicable.
*
diff --git a/src/main/java/org/springframework/data/redis/hash/Jackson2HashMapper.java b/src/main/java/org/springframework/data/redis/hash/Jackson2HashMapper.java
index 819a76dc8..b6652b4f3 100644
--- a/src/main/java/org/springframework/data/redis/hash/Jackson2HashMapper.java
+++ b/src/main/java/org/springframework/data/redis/hash/Jackson2HashMapper.java
@@ -59,10 +59,9 @@ import com.fasterxml.jackson.databind.ser.std.DateSerializer;
* {@link ObjectMapper} based {@link HashMapper} implementation that allows flattening. Given an entity {@code Person}
* with an {@code Address} like below the flattening will create individual hash entries for all nested properties and
* resolve complex types into simple types, as far as possible.
- *
* Flattening requires all property names to not interfere with JSON paths. Using dots or brackets in map keys or as
* property names is not supported using flattening. The resulting hash cannot be mapped back into an Object.
- *
+ *
*
* @param clusterNodes must not be {@literal null}.
*/
diff --git a/src/main/java/org/springframework/data/redis/connection/RedisListCommands.java b/src/main/java/org/springframework/data/redis/connection/RedisListCommands.java
index 055baec3b..992c168ad 100644
--- a/src/main/java/org/springframework/data/redis/connection/RedisListCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/RedisListCommands.java
@@ -218,7 +218,7 @@ public interface RedisListCommands {
* Atomically returns and removes the first/last element (head/tail depending on the {@code from} argument) of the
* list stored at {@code sourceKey}, and pushes the element at the first/last element (head/tail depending on the
* {@code to} argument) of the list stored at {@code destinationKey}.
- *
+ *
* sentinelHostAndPorts[0] = 127.0.0.1:23679 sentinelHostAndPorts[1] = 127.0.0.1:23680 ...
- *
- *
+ *
*
* @param sentinelHostAndPorts must not be {@literal null}.
* @since 1.5
diff --git a/src/main/java/org/springframework/data/redis/connection/RedisServerCommands.java b/src/main/java/org/springframework/data/redis/connection/RedisServerCommands.java
index 83b2378cb..3d3af6ac7 100644
--- a/src/main/java/org/springframework/data/redis/connection/RedisServerCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/RedisServerCommands.java
@@ -115,7 +115,6 @@ public interface RedisServerCommands {
*
- * If you prefer manual id assignment over server generated ones make sure to provide an id via
- * {@link Record#withId(RecordId)}.
+ * Append the given {@link MapRecord record} to the stream stored at {@code Record#getStream}. If you prefer manual id
+ * assignment over server generated ones make sure to provide an id via {@code Record#withId}.
*
* @param record the {@link MapRecord record} to append.
* @return the {@link RecordId id} after save. {@literal null} when used in pipeline / transaction.
@@ -100,9 +99,8 @@ public interface RedisStreamCommands {
}
/**
- * Append the given {@link MapRecord record} to the stream stored at {@link Record#getStream()}.
- * If you prefer manual id assignment over server generated ones make sure to provide an id via
- * {@link Record#withId(RecordId)}.
+ * Append the given {@link MapRecord record} to the stream stored at {@code Record#getStream}. If you prefer manual id
+ * assignment over server generated ones make sure to provide an id via {@code Record#withId}.
*
* @param record the {@link MapRecord record} to append.
* @param options additional options (eg. {@literal MAXLEN}). Must not be {@literal null}, use
diff --git a/src/main/java/org/springframework/data/redis/connection/RedisStringCommands.java b/src/main/java/org/springframework/data/redis/connection/RedisStringCommands.java
index febb10387..0d42bbf51 100644
--- a/src/main/java/org/springframework/data/redis/connection/RedisStringCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/RedisStringCommands.java
@@ -59,7 +59,7 @@ public interface RedisStringCommands {
/**
* Return the value at {@code key} and expire the key by applying {@link Expiration}.
- *
* Use {@link Expiration#milliseconds(long)} for {@code PX}.
* Use {@link Expiration#unixTimestamp(long, TimeUnit)} for {@code EXAT | PXAT}.
@@ -385,29 +385,21 @@ public interface RedisStringCommands {
/**
* Do not set any additional command argument.
- *
- * @return
*/
UPSERT,
/**
* {@code NX}
- *
- * @return
*/
SET_IF_ABSENT,
/**
* {@code XX}
- *
- * @return
*/
SET_IF_PRESENT;
/**
* Do not set any additional command argument.
- *
- * @return
*/
public static SetOption upsert() {
return UPSERT;
@@ -415,8 +407,6 @@ public interface RedisStringCommands {
/**
* {@code XX}
- *
- * @return
*/
public static SetOption ifPresent() {
return SET_IF_PRESENT;
@@ -424,8 +414,6 @@ public interface RedisStringCommands {
/**
* {@code NX}
- *
- * @return
*/
public static SetOption ifAbsent() {
return SET_IF_ABSENT;
diff --git a/src/main/java/org/springframework/data/redis/connection/RedisTxCommands.java b/src/main/java/org/springframework/data/redis/connection/RedisTxCommands.java
index dfcdb38d7..edc745c20 100644
--- a/src/main/java/org/springframework/data/redis/connection/RedisTxCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/RedisTxCommands.java
@@ -29,7 +29,6 @@ public interface RedisTxCommands {
/**
* Mark the start of a transaction block.
* Commands will be queued and can then be executed by calling {@link #exec()} or rolled back using {@link #discard()}
- *
*
- *
*
* @author Mark Paluch
* @author Christoph Strobl
@@ -152,7 +151,7 @@ public interface JedisClientConfiguration {
/**
* Enable connection-pooling.
- *
+ *
+ *
*
* @param callback provides the to retrieve entity ids. Must not be {@literal null}.
* @param type must not be {@literal null}.
diff --git a/src/main/java/org/springframework/data/redis/core/RedisOperations.java b/src/main/java/org/springframework/data/redis/core/RedisOperations.java
index fa03490f5..4c0fd9827 100644
--- a/src/main/java/org/springframework/data/redis/core/RedisOperations.java
+++ b/src/main/java/org/springframework/data/redis/core/RedisOperations.java
@@ -58,7 +58,7 @@ public interface RedisOperations
* Commands will be queued and can then be executed by calling {@link #exec()} or rolled back using {@link #discard()}
- * Example
*
*
diff --git a/src/main/java/org/springframework/data/redis/hash/ObjectHashMapper.java b/src/main/java/org/springframework/data/redis/hash/ObjectHashMapper.java
index 5b0837df7..72a281230 100644
--- a/src/main/java/org/springframework/data/redis/hash/ObjectHashMapper.java
+++ b/src/main/java/org/springframework/data/redis/hash/ObjectHashMapper.java
@@ -123,7 +123,7 @@ public class ObjectHashMapper implements HashMapper