public abstract class LettuceFactoryBeanSupport<T> extends AbstractFactoryBean<T>
FactoryBean interface to allow easy setup of
RedisClient factories via Spring configuration.| Modifier and Type | Field and Description |
|---|---|
static String |
URI_SCHEME_REDIS_SENTINEL |
logger| Constructor and Description |
|---|
LettuceFactoryBeanSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
ClientResources |
getClientResources() |
String |
getPassword() |
RedisURI |
getRedisURI() |
URI |
getUri() |
boolean |
isSingleton() |
void |
setClientResources(ClientResources clientResources)
Set shared client resources to reuse across different client instances.
|
void |
setPassword(String password)
Sets the password to use for a Redis connection.
|
void |
setRedisURI(RedisURI redisURI)
Set the RedisURI for connecting Redis.
|
void |
setUri(URI uri)
Set the URI for connecting Redis.
|
createInstance, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, getObjectType, setBeanClassLoader, setBeanFactory, setSingletonpublic static final String URI_SCHEME_REDIS_SENTINEL
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractFactoryBean<T>Exceptionpublic URI getUri()
public void setUri(URI uri)
RedisURI for URL schemes. Either the
URI of the RedisURI must be set in order to connect to Redis.uri - the URIpublic RedisURI getRedisURI()
public void setRedisURI(RedisURI redisURI)
RedisURI for URL schemes. Either the URI of the RedisURI must be set
in order to connect to Redis.redisURI - the RedisURIpublic String getPassword()
public void setPassword(String password)
password - the passwordpublic ClientResources getClientResources()
public void setClientResources(ClientResources clientResources)
ClientResources instance.clientResources - the client resourcespublic boolean isSingleton()
isSingleton in interface FactoryBean<T>isSingleton in class AbstractFactoryBean<T>Copyright © 2019 lettuce.io. All rights reserved.