DATAREDIS-681 - Polishing.

Remove final keywords from variables in ClusterCommandExecutor. Reduce constructor visibility of driver-specific commands classes. Fix Javadoc.

Original Pull Request: #267
This commit is contained in:
Mark Paluch
2017-08-21 11:58:57 +02:00
committed by Christoph Strobl
parent 0dfeb365c9
commit cdb3e2437d
52 changed files with 117 additions and 92 deletions

View File

@@ -182,7 +182,7 @@ public class ClusterCommandExecutor implements DisposableBean {
* @throws ClusterCommandExecutionFailureException
* @throws IllegalArgumentException in case the node could not be resolved to a topology-known node
*/
public <S, T> MultiNodeResult<T> executeCommandAsyncOnNodes(final ClusterCommandCallback<S, T> callback,
public <S, T> MultiNodeResult<T> executeCommandAsyncOnNodes(ClusterCommandCallback<S, T> callback,
Iterable<RedisClusterNode> nodes) {
Assert.notNull(callback, "Callback must not be null!");
@@ -191,7 +191,7 @@ public class ClusterCommandExecutor implements DisposableBean {
List<RedisClusterNode> resolvedRedisClusterNodes = new ArrayList<>();
ClusterTopology topology = topologyProvider.getTopology();
for (final RedisClusterNode node : nodes) {
for (RedisClusterNode node : nodes) {
try {
resolvedRedisClusterNodes.add(topology.lookup(node));
} catch (ClusterStateFailureException e) {
@@ -200,7 +200,7 @@ public class ClusterCommandExecutor implements DisposableBean {
}
Map<NodeExecution, Future<NodeResult<T>>> futures = new LinkedHashMap<>();
for (final RedisClusterNode node : resolvedRedisClusterNodes) {
for (RedisClusterNode node : resolvedRedisClusterNodes) {
futures.put(new NodeExecution(node), executor.submit(() -> executeCommandOnSingleNode(callback, node)));
}
@@ -267,7 +267,7 @@ public class ClusterCommandExecutor implements DisposableBean {
* @return
* @throws ClusterCommandExecutionFailureException
*/
public <S, T> MultiNodeResult<T> executeMultiKeyCommand(final MultiKeyClusterCommandCallback<S, T> cmd,
public <S, T> MultiNodeResult<T> executeMultiKeyCommand(MultiKeyClusterCommandCallback<S, T> cmd,
Iterable<byte[]> keys) {
Map<RedisClusterNode, Set<byte[]>> nodeKeyMap = new HashMap<>();
@@ -287,10 +287,10 @@ public class ClusterCommandExecutor implements DisposableBean {
Map<NodeExecution, Future<NodeResult<T>>> futures = new LinkedHashMap<>();
for (final Entry<RedisClusterNode, Set<byte[]>> entry : nodeKeyMap.entrySet()) {
for (Entry<RedisClusterNode, Set<byte[]>> entry : nodeKeyMap.entrySet()) {
if (entry.getKey().isMaster()) {
for (final byte[] key : entry.getValue()) {
for (byte[] key : entry.getValue()) {
futures.put(new NodeExecution(entry.getKey(), key),
executor.submit(() -> executeMultiKeyCommandOnSingleNode(cmd, entry.getKey(), key)));
}
@@ -363,7 +363,7 @@ public class ClusterCommandExecutor implements DisposableBean {
* @param <S>
* @since 1.7
*/
public static interface ClusterCommandCallback<T, S> {
public interface ClusterCommandCallback<T, S> {
S doInCluster(T client);
}
@@ -374,7 +374,7 @@ public class ClusterCommandExecutor implements DisposableBean {
* @param <T> native driver connection
* @param <S>
*/
public static interface MultiKeyClusterCommandCallback<T, S> {
public interface MultiKeyClusterCommandCallback<T, S> {
S doInCluster(T client, byte[] key);
}
@@ -550,7 +550,7 @@ public class ClusterCommandExecutor implements DisposableBean {
public List<T> resultsAsListSortBy(byte[]... keys) {
ArrayList<NodeResult<T>> clone = new ArrayList<>(nodeResults);
Collections.sort(clone, new ResultByReferenceKeyPositionComparator(keys));
clone.sort(new ResultByReferenceKeyPositionComparator(keys));
return toList(clone);
}

View File

@@ -34,13 +34,14 @@ import org.springframework.util.Assert;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class JedisClusterGeoCommands implements RedisGeoCommands {
private final JedisClusterConnection connection;
public JedisClusterGeoCommands(JedisClusterConnection connection) {
JedisClusterGeoCommands(JedisClusterConnection connection) {
this.connection = connection;
}

View File

@@ -32,13 +32,14 @@ import org.springframework.data.redis.core.ScanOptions;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class JedisClusterHashCommands implements RedisHashCommands {
private final JedisClusterConnection connection;
public JedisClusterHashCommands(JedisClusterConnection connection) {
JedisClusterHashCommands(JedisClusterConnection connection) {
this.connection = connection;
}

View File

@@ -23,13 +23,14 @@ import org.springframework.data.redis.util.ByteUtils;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class JedisClusterHyperLogLogCommands implements RedisHyperLogLogCommands {
private final JedisClusterConnection connection;
public JedisClusterHyperLogLogCommands(JedisClusterConnection connection) {
JedisClusterHyperLogLogCommands(JedisClusterConnection connection) {
this.connection = connection;
}

View File

@@ -49,7 +49,7 @@ class JedisClusterKeyCommands implements RedisKeyCommands {
private final JedisClusterConnection connection;
public JedisClusterKeyCommands(JedisClusterConnection connection) {
JedisClusterKeyCommands(JedisClusterConnection connection) {
this.connection = connection;
}

View File

@@ -34,7 +34,7 @@ class JedisClusterListCommands implements RedisListCommands {
private final JedisClusterConnection connection;
public JedisClusterListCommands(JedisClusterConnection connection) {
JedisClusterListCommands(JedisClusterConnection connection) {
this.connection = connection;
}

View File

@@ -44,7 +44,7 @@ class JedisClusterServerCommands implements RedisClusterServerCommands {
private final JedisClusterConnection connection;
public JedisClusterServerCommands(JedisClusterConnection connection) {
JedisClusterServerCommands(JedisClusterConnection connection) {
this.connection = connection;
}

View File

@@ -44,7 +44,7 @@ class JedisClusterSetCommands implements RedisSetCommands {
private final JedisClusterConnection connection;
public JedisClusterSetCommands(JedisClusterConnection connection) {
JedisClusterSetCommands(JedisClusterConnection connection) {
this.connection = connection;
}

View File

@@ -40,7 +40,7 @@ class JedisClusterStringCommands implements RedisStringCommands {
private final JedisClusterConnection connection;
public JedisClusterStringCommands(JedisClusterConnection jedisClusterConnection) {
JedisClusterStringCommands(JedisClusterConnection jedisClusterConnection) {
this.connection = jedisClusterConnection;
}

View File

@@ -33,6 +33,7 @@ import org.springframework.util.Assert;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @author Clement Ong
* @since 2.0
*/
@@ -40,7 +41,7 @@ class JedisClusterZSetCommands implements RedisZSetCommands {
private final JedisClusterConnection connection;
public JedisClusterZSetCommands(JedisClusterConnection connection) {
JedisClusterZSetCommands(JedisClusterConnection connection) {
this.connection = connection;
}

View File

@@ -35,13 +35,14 @@ import org.springframework.util.Assert;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class JedisGeoCommands implements RedisGeoCommands {
private final JedisConnection connection;
public JedisGeoCommands(JedisConnection connection) {
JedisGeoCommands(JedisConnection connection) {
this.connection = connection;
}

View File

@@ -32,13 +32,14 @@ import org.springframework.data.redis.core.ScanOptions;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class JedisHashCommands implements RedisHashCommands {
private final JedisConnection connection;
public JedisHashCommands(JedisConnection connection) {
JedisHashCommands(JedisConnection connection) {
this.connection = connection;
}

View File

@@ -21,13 +21,14 @@ import org.springframework.util.Assert;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class JedisHyperLogLogCommands implements RedisHyperLogLogCommands {
private final JedisConnection connection;
public JedisHyperLogLogCommands(JedisConnection connection) {
JedisHyperLogLogCommands(JedisConnection connection) {
this.connection = connection;
}

View File

@@ -35,13 +35,14 @@ import org.springframework.util.Assert;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class JedisKeyCommands implements RedisKeyCommands {
private final JedisConnection connection;
public JedisKeyCommands(JedisConnection connection) {
JedisKeyCommands(JedisConnection connection) {
this.connection = connection;
}

View File

@@ -25,13 +25,14 @@ import org.springframework.data.redis.connection.jedis.JedisConnection.JedisResu
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class JedisListCommands implements RedisListCommands {
private final JedisConnection connection;
public JedisListCommands(JedisConnection connection) {
JedisListCommands(JedisConnection connection) {
this.connection = connection;
}

View File

@@ -28,11 +28,11 @@ class JedisScriptingCommands implements RedisScriptingCommands {
private final JedisConnection connection;
public JedisScriptingCommands(JedisConnection connection) {
JedisScriptingCommands(JedisConnection connection) {
this.connection = connection;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#scriptFlush()
*/
@@ -51,7 +51,7 @@ class JedisScriptingCommands implements RedisScriptingCommands {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#scriptKill()
*/
@@ -70,7 +70,7 @@ class JedisScriptingCommands implements RedisScriptingCommands {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#scriptLoad(byte[])
*/
@@ -89,7 +89,7 @@ class JedisScriptingCommands implements RedisScriptingCommands {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#scriptExists(java.lang.String[])
*/
@@ -108,7 +108,7 @@ class JedisScriptingCommands implements RedisScriptingCommands {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#eval(byte[], org.springframework.data.redis.connection.ReturnType, int, byte[][])
*/
@@ -129,7 +129,7 @@ class JedisScriptingCommands implements RedisScriptingCommands {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#evalSha(java.lang.String, org.springframework.data.redis.connection.ReturnType, int, byte[][])
*/
@@ -138,7 +138,7 @@ class JedisScriptingCommands implements RedisScriptingCommands {
return evalSha(JedisConverters.toBytes(scriptSha1), returnType, numKeys, keysAndArgs);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#evalSha(byte[], org.springframework.data.redis.connection.ReturnType, int, byte[][])
*/

View File

@@ -36,7 +36,7 @@ class JedisServerCommands implements RedisServerCommands {
private final JedisConnection connection;
public JedisServerCommands(JedisConnection connection) {
JedisServerCommands(JedisConnection connection) {
this.connection = connection;
}

View File

@@ -30,13 +30,14 @@ import org.springframework.data.redis.core.ScanOptions;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class JedisSetCommands implements RedisSetCommands {
private final JedisConnection connection;
public JedisSetCommands(JedisConnection connection) {
JedisSetCommands(JedisConnection connection) {
this.connection = connection;
}

View File

@@ -26,13 +26,14 @@ import org.springframework.util.ObjectUtils;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class JedisStringCommands implements RedisStringCommands {
private final JedisConnection connection;
public JedisStringCommands(JedisConnection connection) {
JedisStringCommands(JedisConnection connection) {
this.connection = connection;
}

View File

@@ -17,11 +17,12 @@ package org.springframework.data.redis.connection.lettuce;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceClusterGeoCommands extends LettuceGeoCommands {
public LettuceClusterGeoCommands(LettuceClusterConnection connection) {
LettuceClusterGeoCommands(LettuceClusterConnection connection) {
super(connection);
}
}

View File

@@ -17,11 +17,12 @@ package org.springframework.data.redis.connection.lettuce;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceClusterHashCommands extends LettuceHashCommands {
public LettuceClusterHashCommands(LettuceClusterConnection connection) {
LettuceClusterHashCommands(LettuceClusterConnection connection) {
super(connection);
}
}

View File

@@ -21,11 +21,12 @@ import org.springframework.data.redis.util.ByteUtils;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceClusterHyperLogLogCommands extends LettuceHyperLogLogCommands {
public LettuceClusterHyperLogLogCommands(LettuceClusterConnection connection) {
LettuceClusterHyperLogLogCommands(LettuceClusterConnection connection) {
super(connection);
}

View File

@@ -33,13 +33,14 @@ import org.springframework.util.CollectionUtils;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceClusterKeyCommands extends LettuceKeyCommands {
private final LettuceClusterConnection connection;
public LettuceClusterKeyCommands(LettuceClusterConnection connection) {
LettuceClusterKeyCommands(LettuceClusterConnection connection) {
super(connection);
this.connection = connection;

View File

@@ -34,7 +34,7 @@ class LettuceClusterListCommands extends LettuceListCommands {
private final LettuceClusterConnection connection;
public LettuceClusterListCommands(LettuceClusterConnection connection) {
LettuceClusterListCommands(LettuceClusterConnection connection) {
super(connection);
this.connection = connection;

View File

@@ -43,7 +43,7 @@ class LettuceClusterServerCommands extends LettuceServerCommands implements Redi
private final LettuceClusterConnection connection;
public LettuceClusterServerCommands(LettuceClusterConnection connection) {
LettuceClusterServerCommands(LettuceClusterConnection connection) {
super(connection);
this.connection = connection;

View File

@@ -36,7 +36,7 @@ class LettuceClusterSetCommands extends LettuceSetCommands {
private final LettuceClusterConnection connection;
public LettuceClusterSetCommands(LettuceClusterConnection connection) {
LettuceClusterSetCommands(LettuceClusterConnection connection) {
super(connection);
this.connection = connection;

View File

@@ -21,16 +21,13 @@ import org.springframework.data.redis.connection.ClusterSlotHashUtil;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceClusterStringCommands extends LettuceStringCommands {
private final LettuceClusterConnection connection;
public LettuceClusterStringCommands(LettuceClusterConnection connection) {
LettuceClusterStringCommands(LettuceClusterConnection connection) {
super(connection);
this.connection = connection;
}
/*

View File

@@ -17,11 +17,12 @@ package org.springframework.data.redis.connection.lettuce;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceClusterZSetCommands extends LettuceZSetCommands {
public LettuceClusterZSetCommands(LettuceClusterConnection connection) {
LettuceClusterZSetCommands(LettuceClusterConnection connection) {
super(connection);
}
}

View File

@@ -19,16 +19,17 @@ import org.springframework.data.redis.connection.ReactiveClusterGeoCommands;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceReactiveClusterGeoCommands extends LettuceReactiveGeoCommands implements ReactiveClusterGeoCommands {
/**
* Create new {@link LettuceReactiveGeoCommands}.
* Create new {@link LettuceReactiveClusterGeoCommands}.
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveClusterGeoCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveClusterGeoCommands(LettuceReactiveRedisConnection connection) {
super(connection);
}
}

View File

@@ -19,16 +19,17 @@ import org.springframework.data.redis.connection.ReactiveClusterHashCommands;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceReactiveClusterHashCommands extends LettuceReactiveHashCommands implements ReactiveClusterHashCommands {
/**
* Create new {@link LettuceReactiveHashCommands}.
* Create new {@link LettuceReactiveClusterHashCommands}.
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveClusterHashCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveClusterHashCommands(LettuceReactiveRedisConnection connection) {
super(connection);
}
}

View File

@@ -32,17 +32,18 @@ import org.springframework.util.Assert;
/**
* @author Christoph Strobl
* @since @since 2.0
* @author Mark Paluch
* @since 2.0
*/
class LettuceReactiveClusterHyperLogLogCommands extends LettuceReactiveHyperLogLogCommands
implements ReactiveClusterHyperLogLogCommands {
/**
* Create new {@link LettuceReactiveHyperLogLogCommands}.
* Create new {@link LettuceReactiveClusterHyperLogLogCommands}.
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveClusterHyperLogLogCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveClusterHyperLogLogCommands(LettuceReactiveRedisConnection connection) {
super(connection);
}

View File

@@ -41,11 +41,11 @@ class LettuceReactiveClusterKeyCommands extends LettuceReactiveKeyCommands imple
private LettuceReactiveRedisClusterConnection connection;
/**
* Create new {@link LettuceReactiveKeyCommands}.
* Create new {@link LettuceReactiveClusterKeyCommands}.
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveClusterKeyCommands(LettuceReactiveRedisClusterConnection connection) {
LettuceReactiveClusterKeyCommands(LettuceReactiveRedisClusterConnection connection) {
super(connection);

View File

@@ -35,11 +35,11 @@ import org.springframework.util.Assert;
class LettuceReactiveClusterListCommands extends LettuceReactiveListCommands implements ReactiveClusterListCommands {
/**
* Create new {@link LettuceReactiveListCommands}.
* Create new {@link LettuceReactiveClusterListCommands}.
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveClusterListCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveClusterListCommands(LettuceReactiveRedisConnection connection) {
super(connection);
}

View File

@@ -19,17 +19,18 @@ import org.springframework.data.redis.connection.ReactiveClusterNumberCommands;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceReactiveClusterNumberCommands extends LettuceReactiveNumberCommands
implements ReactiveClusterNumberCommands {
/**
* Create new {@link LettuceReactiveStringCommands}.
* Create new {@link LettuceReactiveClusterNumberCommands}.
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveClusterNumberCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveClusterNumberCommands(LettuceReactiveRedisConnection connection) {
super(connection);
}
}

View File

@@ -58,14 +58,14 @@ class LettuceReactiveClusterServerCommands extends LettuceReactiveServerCommands
private final ClusterTopologyProvider topologyProvider;
/**
* Create new {@link LettuceReactiveGeoCommands}.
* Create new {@link LettuceReactiveClusterServerCommands}.
*
* @param connection must not be {@literal null}.
* @param topologyProvider must not be {@literal null}.
* @throws IllegalArgumentException when {@code connection} is {@literal null}.
* @throws IllegalArgumentException when {@code topologyProvider} is {@literal null}.
*/
public LettuceReactiveClusterServerCommands(LettuceReactiveRedisClusterConnection connection,
LettuceReactiveClusterServerCommands(LettuceReactiveRedisClusterConnection connection,
ClusterTopologyProvider topologyProvider) {
super(connection);

View File

@@ -39,11 +39,11 @@ import org.springframework.util.Assert;
class LettuceReactiveClusterSetCommands extends LettuceReactiveSetCommands implements ReactiveClusterSetCommands {
/**
* Create new {@link LettuceReactiveSetCommands}.
* Create new {@link LettuceReactiveClusterSetCommands}.
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveClusterSetCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveClusterSetCommands(LettuceReactiveRedisConnection connection) {
super(connection);
}

View File

@@ -30,17 +30,18 @@ import org.springframework.data.redis.connection.ReactiveRedisConnection;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceReactiveClusterStringCommands extends LettuceReactiveStringCommands
implements ReactiveClusterStringCommands {
/**
* Create new {@link LettuceReactiveStringCommands}.
* Create new {@link LettuceReactiveClusterStringCommands}.
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveClusterStringCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveClusterStringCommands(LettuceReactiveRedisConnection connection) {
super(connection);
}

View File

@@ -27,16 +27,17 @@ import org.springframework.util.Assert;
/**
* @author Christoph Strobl
* @since @since 2.0
* @author Mark Paluch
* @since 2.0
*/
class LettuceReactiveClusterZSetCommands extends LettuceReactiveZSetCommands implements ReactiveClusterZSetCommands {
/**
* Create new {@link LettuceReactiveSetCommands}.
* Create new {@link LettuceReactiveClusterZSetCommands}.
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveClusterZSetCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveClusterZSetCommands(LettuceReactiveRedisConnection connection) {
super(connection);
}

View File

@@ -43,6 +43,7 @@ import org.springframework.util.Assert;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceReactiveGeoCommands implements ReactiveGeoCommands {
@@ -54,7 +55,7 @@ class LettuceReactiveGeoCommands implements ReactiveGeoCommands {
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveGeoCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveGeoCommands(LettuceReactiveRedisConnection connection) {
Assert.notNull(connection, "Connection must not be null!");
this.connection = connection;

View File

@@ -50,7 +50,7 @@ class LettuceReactiveHashCommands implements ReactiveHashCommands {
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveHashCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveHashCommands(LettuceReactiveRedisConnection connection) {
Assert.notNull(connection, "Connection must not be null!");
this.connection = connection;

View File

@@ -27,6 +27,7 @@ import org.springframework.util.Assert;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceReactiveHyperLogLogCommands implements ReactiveHyperLogLogCommands {
@@ -38,9 +39,10 @@ class LettuceReactiveHyperLogLogCommands implements ReactiveHyperLogLogCommands
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveHyperLogLogCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveHyperLogLogCommands(LettuceReactiveRedisConnection connection) {
Assert.notNull(connection, "Connection must not be null!");
this.connection = connection;
}

View File

@@ -47,7 +47,7 @@ class LettuceReactiveKeyCommands implements ReactiveKeyCommands {
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveKeyCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveKeyCommands(LettuceReactiveRedisConnection connection) {
Assert.notNull(connection, "Connection must not be null!");

View File

@@ -49,7 +49,7 @@ class LettuceReactiveListCommands implements ReactiveListCommands {
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveListCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveListCommands(LettuceReactiveRedisConnection connection) {
Assert.notNull(connection, "Connection must not be null!");

View File

@@ -35,11 +35,11 @@ class LettuceReactiveNumberCommands implements ReactiveNumberCommands {
private final LettuceReactiveRedisConnection connection;
/**
* Create new {@link LettuceReactiveStringCommands}.
* Create new {@link LettuceReactiveNumberCommands}.
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveNumberCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveNumberCommands(LettuceReactiveRedisConnection connection) {
Assert.notNull(connection, "Connection must not be null!");

View File

@@ -43,7 +43,7 @@ class LettuceReactiveSetCommands implements ReactiveSetCommands {
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveSetCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveSetCommands(LettuceReactiveRedisConnection connection) {
Assert.notNull(connection, "Connection must not be null!");

View File

@@ -49,7 +49,7 @@ class LettuceReactiveStringCommands implements ReactiveStringCommands {
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveStringCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveStringCommands(LettuceReactiveRedisConnection connection) {
Assert.notNull(connection, "Connection must not be null!");

View File

@@ -53,11 +53,11 @@ class LettuceReactiveZSetCommands implements ReactiveZSetCommands {
private final LettuceReactiveRedisConnection connection;
/**
* Create new {@link LettuceReactiveSetCommands}.
* Create new {@link LettuceReactiveZSetCommands}.
*
* @param connection must not be {@literal null}.
*/
public LettuceReactiveZSetCommands(LettuceReactiveRedisConnection connection) {
LettuceReactiveZSetCommands(LettuceReactiveRedisConnection connection) {
Assert.notNull(connection, "Connection must not be null!");

View File

@@ -36,11 +36,11 @@ class LettuceScriptingCommands implements RedisScriptingCommands {
private final LettuceConnection connection;
public LettuceScriptingCommands(LettuceConnection connection) {
LettuceScriptingCommands(LettuceConnection connection) {
this.connection = connection;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#scriptFlush()
*/
@@ -61,7 +61,7 @@ class LettuceScriptingCommands implements RedisScriptingCommands {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#scriptKill()
*/
@@ -85,7 +85,7 @@ class LettuceScriptingCommands implements RedisScriptingCommands {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#scriptLoad(byte[])
*/
@@ -106,7 +106,7 @@ class LettuceScriptingCommands implements RedisScriptingCommands {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#scriptExists(java.lang.String[])
*/
@@ -127,7 +127,7 @@ class LettuceScriptingCommands implements RedisScriptingCommands {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#eval(byte[], org.springframework.data.redis.connection.ReturnType, int, byte[][])
*/
@@ -156,7 +156,7 @@ class LettuceScriptingCommands implements RedisScriptingCommands {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#evalSha(java.lang.String, org.springframework.data.redis.connection.ReturnType, int, byte[][])
*/
@@ -185,7 +185,7 @@ class LettuceScriptingCommands implements RedisScriptingCommands {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.RedisScriptingCommands#evalSha(byte[], org.springframework.data.redis.connection.ReturnType, int, byte[][])
*/

View File

@@ -38,7 +38,7 @@ class LettuceServerCommands implements RedisServerCommands {
private final LettuceConnection connection;
public LettuceServerCommands(LettuceConnection connection) {
LettuceServerCommands(LettuceConnection connection) {
this.connection = connection;
}

View File

@@ -36,13 +36,14 @@ import org.springframework.data.redis.core.ScanOptions;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceSetCommands implements RedisSetCommands {
private final LettuceConnection connection;
public LettuceSetCommands(LettuceConnection connection) {
LettuceSetCommands(LettuceConnection connection) {
this.connection = connection;
}

View File

@@ -30,13 +30,14 @@ import org.springframework.data.redis.core.types.Expiration;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceStringCommands implements RedisStringCommands {
private final LettuceConnection connection;
public LettuceStringCommands(LettuceConnection connection) {
LettuceStringCommands(LettuceConnection connection) {
this.connection = connection;
}

View File

@@ -37,13 +37,14 @@ import org.springframework.util.Assert;
/**
* @author Christoph Strobl
* @author Mark Paluch
* @since 2.0
*/
class LettuceZSetCommands implements RedisZSetCommands {
private final LettuceConnection connection;
public LettuceZSetCommands(LettuceConnection connection) {
LettuceZSetCommands(LettuceConnection connection) {
this.connection = connection;
}