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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the connectionFactory.Returns the requiredRedisConnectionFactoryor throwsIllegalStateExceptionif the connection factory is not set.voidsetConnectionFactory(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:
afterPropertiesSetin interfaceInitializingBean
-
getConnectionFactory
Returns the connectionFactory.- Returns:
- Returns the connectionFactory. Can be null
-
getRequiredConnectionFactory
Returns the requiredRedisConnectionFactoryor throwsIllegalStateExceptionif 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.
-