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][,host2[:port2]]
rediss://[password@]host[:port][,host2[:port2]]
RedisURI
,
ClientResourcesFactoryBean
URI_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() |
protected Collection<RedisURI> |
getRedisURIs() |
boolean |
isVerifyPeer() |
void |
setVerifyPeer(boolean verifyPeer) |
getClientResources, getPassword, getRedisURI, getUri, isSingleton, setClientResources, setPassword, setRedisURI, setUri
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class LettuceFactoryBeanSupport<RedisClusterClient>
Exception
protected Collection<RedisURI> getRedisURIs()
protected void destroyInstance(RedisClusterClient instance) throws Exception
destroyInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<RedisClusterClient>
Exception
public 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>
Exception
public boolean isVerifyPeer()
public void setVerifyPeer(boolean verifyPeer)
Copyright © 2018 lettuce.io. All rights reserved.