public class StringRedisRetryTemplate extends RedisRetryTemplate<java.lang.String,java.lang.String>
Constructor and Description |
---|
StringRedisRetryTemplate(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory,
org.springframework.retry.RetryOperations retryOperations)
Constructs a new
StringRedisTemplate instance with a set of retry operations. |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.data.redis.connection.RedisConnection |
preProcessConnection(org.springframework.data.redis.connection.RedisConnection connection,
boolean existingConnection) |
execute, getRecoveryCallback, RetryOperations, setRecoveryCallback, setRetryOperations
afterPropertiesSet, boundHashOps, boundListOps, boundSetOps, boundValueOps, boundZSetOps, convertAndSend, createRedisConnectionProxy, delete, delete, discard, dump, exec, exec, execRaw, execute, execute, execute, execute, execute, executePipelined, executePipelined, executePipelined, executePipelined, expire, expireAt, getClientList, getDefaultSerializer, getExpire, getExpire, getHashKeySerializer, getHashValueSerializer, getKeySerializer, getStringSerializer, getValueSerializer, hasKey, isEnableDefaultSerializer, isExposeConnection, keys, killClient, move, multi, opsForHash, opsForHyperLogLog, opsForList, opsForSet, opsForValue, opsForZSet, persist, postProcessResult, randomKey, rename, renameIfAbsent, restore, setDefaultSerializer, setEnableDefaultSerializer, setEnableTransactionSupport, setExposeConnection, setHashKeySerializer, setHashValueSerializer, setKeySerializer, setScriptExecutor, setStringSerializer, setValueSerializer, slaveOf, slaveOfNoOne, sort, sort, sort, sort, sort, type, unwatch, watch, watch
public StringRedisRetryTemplate(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, org.springframework.retry.RetryOperations retryOperations)
StringRedisTemplate
instance with a set of retry operations.
RedisTemplate.afterPropertiesSet()
still need to be called if creating outside a spring managed contextconnectionFactory
- connection factory for creating new connectionsprotected org.springframework.data.redis.connection.RedisConnection preProcessConnection(org.springframework.data.redis.connection.RedisConnection connection, boolean existingConnection)
preProcessConnection
in class org.springframework.data.redis.core.RedisTemplate<java.lang.String,java.lang.String>