public abstract class LettuceFactoryBeanSupport<T>
extends org.springframework.beans.factory.config.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 |
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.
|
public static final String URI_SCHEME_REDIS_SENTINEL
public void afterPropertiesSet() throws Exception
public 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 resourcesCopyright © 2018 lettuce.io. All rights reserved.