public class RedisAccessor extends Object implements InitializingBean
RedisTemplate defining common properties. Not intended to be used directly.| Modifier and Type | Field and Description |
|---|---|
protected Log |
logger
Logger available to subclasses
|
| Constructor and Description |
|---|
RedisAccessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
RedisConnectionFactory |
getConnectionFactory()
Returns the connectionFactory.
|
RedisConnectionFactory |
getRequiredConnectionFactory()
Returns the required
RedisConnectionFactory or throws IllegalStateException if the connection
factory is not set. |
void |
setConnectionFactory(RedisConnectionFactory connectionFactory)
Sets the connection factory.
|
protected final Log logger
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBean@Nullable public RedisConnectionFactory getConnectionFactory()
public RedisConnectionFactory getRequiredConnectionFactory()
RedisConnectionFactory or throws IllegalStateException if the connection
factory is not set.RedisConnectionFactory.IllegalStateException - if the connection factory is not set.public void setConnectionFactory(RedisConnectionFactory connectionFactory)
connectionFactory - The connectionFactory to set.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.