public class RedisClusterClientFactoryBean extends LettuceFactoryBeanSupport<RedisClusterClient>
RedisClusterClient instances. Needs either a URI or a RedisURI as input and allows
to reuse ClientResources. URI Format: redis://[password@]host[:port]
RedisURI,
ClientResourcesFactoryBeanURI_SCHEME_REDIS_SENTINEL| Constructor and Description |
|---|
RedisClusterClientFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected RedisClusterClient |
createInstance() |
protected void |
destroyInstance(RedisClusterClient instance) |
Class<?> |
getObjectType() |
getClientResources, getPassword, getRedisURI, getUri, isSingleton, setClientResources, setPassword, setRedisURI, setUripublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class LettuceFactoryBeanSupport<RedisClusterClient>Exceptionprotected void destroyInstance(RedisClusterClient instance) throws Exception
destroyInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<RedisClusterClient>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<RedisClusterClient>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<RedisClusterClient>protected RedisClusterClient createInstance() throws Exception
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<RedisClusterClient>ExceptionCopyright © 2016. All rights reserved.