Class RedisAccessor
java.lang.Object
org.springframework.data.redis.core.RedisAccessor
- All Implemented Interfaces:
InitializingBean
- Direct Known Subclasses:
RedisTemplate
Base class for
RedisTemplate
defining common properties. Not intended to be used directly.- Author:
- Costin Leau
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns the connectionFactory.Returns the requiredRedisConnectionFactory
or throwsIllegalStateException
if the connection factory is not set.void
setConnectionFactory
(RedisConnectionFactory connectionFactory) Sets the connection factory.
-
Field Details
-
logger
Logger available to subclasses
-
-
Constructor Details
-
RedisAccessor
public RedisAccessor()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
getConnectionFactory
Returns the connectionFactory.- Returns:
- Returns the connectionFactory. Can be null
-
getRequiredConnectionFactory
Returns the requiredRedisConnectionFactory
or throwsIllegalStateException
if the connection factory is not set.- Returns:
- the associated
RedisConnectionFactory
. - Throws:
IllegalStateException
- if the connection factory is not set.- Since:
- 2.0
-
setConnectionFactory
Sets the connection factory.- Parameters:
connectionFactory
- The connectionFactory to set.
-