public class RedissonConnectionFactory extends Object implements org.springframework.data.redis.connection.RedisConnectionFactory, org.springframework.data.redis.connection.ReactiveRedisConnectionFactory, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Modifier and Type | Field and Description |
---|---|
static org.springframework.data.redis.ExceptionTranslationStrategy |
EXCEPTION_TRANSLATION |
Constructor and Description |
---|
RedissonConnectionFactory() |
RedissonConnectionFactory(org.redisson.api.RedissonClient redisson) |
RedissonConnectionFactory(RedissonConnectionConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
org.springframework.data.redis.connection.RedisClusterConnection |
getClusterConnection() |
org.springframework.data.redis.connection.RedisConnection |
getConnection() |
boolean |
getConvertPipelineAndTxResults() |
int |
getDatabase() |
org.springframework.data.redis.connection.ReactiveRedisClusterConnection |
getReactiveClusterConnection() |
org.springframework.data.redis.connection.ReactiveRedisConnection |
getReactiveConnection() |
org.springframework.data.redis.connection.RedisSentinelConnection |
getSentinelConnection() |
void |
setDatabase(int index) |
org.springframework.dao.DataAccessException |
translateExceptionIfPossible(RuntimeException ex) |
public static final org.springframework.data.redis.ExceptionTranslationStrategy EXCEPTION_TRANSLATION
public RedissonConnectionFactory()
public RedissonConnectionFactory(org.redisson.api.RedissonClient redisson)
public RedissonConnectionFactory(RedissonConnectionConfiguration configuration)
public org.springframework.dao.DataAccessException translateExceptionIfPossible(RuntimeException ex)
translateExceptionIfPossible
in interface org.springframework.dao.support.PersistenceExceptionTranslator
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public org.springframework.data.redis.connection.RedisConnection getConnection()
getConnection
in interface org.springframework.data.redis.connection.RedisConnectionFactory
public org.springframework.data.redis.connection.RedisClusterConnection getClusterConnection()
getClusterConnection
in interface org.springframework.data.redis.connection.RedisConnectionFactory
public boolean getConvertPipelineAndTxResults()
getConvertPipelineAndTxResults
in interface org.springframework.data.redis.connection.RedisConnectionFactory
public org.springframework.data.redis.connection.RedisSentinelConnection getSentinelConnection()
getSentinelConnection
in interface org.springframework.data.redis.connection.RedisConnectionFactory
public org.springframework.data.redis.connection.ReactiveRedisConnection getReactiveConnection()
getReactiveConnection
in interface org.springframework.data.redis.connection.ReactiveRedisConnectionFactory
public org.springframework.data.redis.connection.ReactiveRedisClusterConnection getReactiveClusterConnection()
getReactiveClusterConnection
in interface org.springframework.data.redis.connection.ReactiveRedisConnectionFactory
public int getDatabase()
public void setDatabase(int index)
Copyright © 2019. All rights reserved.