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]
rediss://[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() |
boolean |
isVerifyPeer() |
void |
setVerifyPeer(boolean verifyPeer) |
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>Exceptionpublic boolean isVerifyPeer()
public void setVerifyPeer(boolean verifyPeer)
Copyright © 2016. All rights reserved.