|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.redis.connection.rjc.RjcConnectionFactory
public class RjcConnectionFactory
Connection factory creating rjc based connections.
| Constructor Summary | |
|---|---|
RjcConnectionFactory()
Constructs a new RjcConnectionFactory instance
with default settings (default connection pooling, no shard information). |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
RedisConnection |
getConnection()
Provides a suitable connection for interacting with Redis. |
int |
getDatabase()
Returns the index of the database. |
String |
getHostName()
Returns the Redis hostName. |
String |
getPassword()
Returns the password used for authenticating with the Redis server. |
int |
getPort()
Returns the port used to connect to the Redis instance. |
int |
getTimeout()
Returns the timeout. |
boolean |
getUsePool()
Indicates the use of a connection pool. |
protected RjcConnection |
postProcessConnection(RjcConnection connection)
Post process a newly retrieved connection. |
void |
setDatabase(int index)
Sets the index of the database used by this connection factory. |
void |
setHostName(String hostName)
Sets the Redis hostName. |
void |
setPassword(String password)
Sets the password used for authenticating with the Redis server. |
void |
setPort(int port)
Sets the port used to connect to the Redis instance. |
void |
setTimeout(int timeout)
|
void |
setUsePool(boolean usePool)
Turns on or off the use of connection pooling. |
DataAccessException |
translateExceptionIfPossible(RuntimeException ex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RjcConnectionFactory()
RjcConnectionFactory instance
with default settings (default connection pooling, no shard information).
| Method Detail |
|---|
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic void destroy()
destroy in interface DisposableBeanpublic RedisConnection getConnection()
RedisConnectionFactory
getConnection in interface RedisConnectionFactoryprotected RjcConnection postProcessConnection(RjcConnection connection)
connection -
public DataAccessException translateExceptionIfPossible(RuntimeException ex)
translateExceptionIfPossible in interface PersistenceExceptionTranslatorpublic String getHostName()
public void setHostName(String hostName)
hostName - The hostName to set.public String getPassword()
public void setPassword(String password)
password - the password to setpublic int getPort()
public void setPort(int port)
port - Redis portpublic int getTimeout()
public void setTimeout(int timeout)
timeout - The timeout to set.public boolean getUsePool()
public void setUsePool(boolean usePool)
usePool - The usePool to set.public int getDatabase()
public void setDatabase(int index)
index - database index
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||