org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.dao.support.PersistenceExceptionTranslator, org.springframework.data.redis.connection.RedisConnectionFactorypublic class RedissonConnectionFactory extends Object implements org.springframework.data.redis.connection.RedisConnectionFactory, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field | Description |
|---|---|---|
static org.springframework.data.redis.ExceptionTranslationStrategy |
EXCEPTION_TRANSLATION |
| Constructor | Description |
|---|---|
RedissonConnectionFactory() |
Creates factory with default Redisson configuration
|
RedissonConnectionFactory(org.redisson.api.RedissonClient redisson) |
Creates factory with defined Redisson instance
|
RedissonConnectionFactory(org.redisson.config.Config config) |
Creates factory with defined Redisson config
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
afterPropertiesSet() |
|
void |
destroy() |
|
org.springframework.data.redis.connection.RedisClusterConnection |
getClusterConnection() |
|
org.springframework.data.redis.connection.RedisConnection |
getConnection() |
|
boolean |
getConvertPipelineAndTxResults() |
|
org.springframework.data.redis.connection.RedisSentinelConnection |
getSentinelConnection() |
|
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)
redisson - - Redisson instancepublic RedissonConnectionFactory(org.redisson.config.Config config)
config - - Redisson configpublic org.springframework.dao.DataAccessException translateExceptionIfPossible(RuntimeException ex)
translateExceptionIfPossible in interface org.springframework.dao.support.PersistenceExceptionTranslatorpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic org.springframework.data.redis.connection.RedisConnection getConnection()
getConnection in interface org.springframework.data.redis.connection.RedisConnectionFactorypublic org.springframework.data.redis.connection.RedisClusterConnection getClusterConnection()
getClusterConnection in interface org.springframework.data.redis.connection.RedisConnectionFactorypublic boolean getConvertPipelineAndTxResults()
getConvertPipelineAndTxResults in interface org.springframework.data.redis.connection.RedisConnectionFactorypublic org.springframework.data.redis.connection.RedisSentinelConnection getSentinelConnection()
getSentinelConnection in interface org.springframework.data.redis.connection.RedisConnectionFactoryCopyright © 2014–2018 The Redisson Project. All rights reserved.