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://[[email protected]]host[:port][,host2[:port2]]
rediss://[[email protected]]host[:port][,host2[:port2]]
RedisURI
,
ClientResourcesFactoryBean
URI_SCHEME_REDIS_SENTINEL
logger
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
destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, setBeanClassLoader, setBeanFactory, setSingleton
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class LettuceFactoryBeanSupport<RedisClusterClient>
Exception
protected Collection<RedisURI> getRedisURIs()
protected void destroyInstance(RedisClusterClient instance) throws Exception
destroyInstance
in class AbstractFactoryBean<RedisClusterClient>
Exception
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<RedisClusterClient>
getObjectType
in class AbstractFactoryBean<RedisClusterClient>
protected RedisClusterClient createInstance() throws Exception
createInstance
in class AbstractFactoryBean<RedisClusterClient>
Exception
public boolean isVerifyPeer()
public void setVerifyPeer(boolean verifyPeer)
Copyright © 2018 lettuce.io. All rights reserved.