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
| 限定符和类型 | 字段和说明 |
|---|---|
static org.springframework.data.redis.ExceptionTranslationStrategy |
EXCEPTION_TRANSLATION |
| 构造器和说明 |
|---|
RedissonConnectionFactory() |
RedissonConnectionFactory(org.redisson.api.RedissonClient redisson) |
RedissonConnectionFactory(RedissonConnectionConfiguration configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 org.springframework.dao.support.PersistenceExceptionTranslatorpublic void destroy()
throws Exception
destroy 在接口中 org.springframework.beans.factory.DisposableBeanExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionpublic org.springframework.data.redis.connection.RedisConnection getConnection()
getConnection 在接口中 org.springframework.data.redis.connection.RedisConnectionFactorypublic org.springframework.data.redis.connection.RedisClusterConnection getClusterConnection()
getClusterConnection 在接口中 org.springframework.data.redis.connection.RedisConnectionFactorypublic boolean getConvertPipelineAndTxResults()
getConvertPipelineAndTxResults 在接口中 org.springframework.data.redis.connection.RedisConnectionFactorypublic org.springframework.data.redis.connection.RedisSentinelConnection getSentinelConnection()
getSentinelConnection 在接口中 org.springframework.data.redis.connection.RedisConnectionFactorypublic org.springframework.data.redis.connection.ReactiveRedisConnection getReactiveConnection()
getReactiveConnection 在接口中 org.springframework.data.redis.connection.ReactiveRedisConnectionFactorypublic org.springframework.data.redis.connection.ReactiveRedisClusterConnection getReactiveClusterConnection()
getReactiveClusterConnection 在接口中 org.springframework.data.redis.connection.ReactiveRedisConnectionFactorypublic int getDatabase()
public void setDatabase(int index)
Copyright © 2019. All rights reserved.