|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.redis.connection.srp.SrpConnectionFactory
public class SrpConnectionFactory
Connection factory creating Redis Protocol based connections.
| Constructor Summary | |
|---|---|
SrpConnectionFactory()
Constructs a new SRedisConnectionFactory instance with default settings. |
|
SrpConnectionFactory(String host,
int port)
Constructs a new SRedisConnectionFactory instance with default settings. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
RedisConnection |
getConnection()
Provides a suitable connection for interacting with Redis. |
boolean |
getConvertPipelineAndTxResults()
Specifies if pipelined results should be converted to the expected data type. |
String |
getHostName()
Returns the current host. |
String |
getPassword()
Returns the password used for authenticating with the Redis server. |
int |
getPort()
Returns the current port. |
void |
setConvertPipelineAndTxResults(boolean convertPipelineAndTxResults)
Specifies if pipelined results should be converted to the expected data type. |
void |
setHostName(String host)
Sets the host. |
void |
setPassword(String password)
Sets the password used for authenticating with the Redis server. |
void |
setPort(int port)
Sets the port. |
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 SrpConnectionFactory()
SRedisConnectionFactory instance with default settings.
public SrpConnectionFactory(String host,
int port)
SRedisConnectionFactory instance with default settings.
| Method Detail |
|---|
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic void destroy()
destroy in interface DisposableBeanpublic RedisConnection getConnection()
RedisConnectionFactory
getConnection in interface RedisConnectionFactorypublic DataAccessException translateExceptionIfPossible(RuntimeException ex)
translateExceptionIfPossible in interface PersistenceExceptionTranslatorpublic String getHostName()
public void setHostName(String host)
host - the host to setpublic int getPort()
public void setPort(int port)
port - the port to setpublic String getPassword()
public void setPassword(String password)
password - the password to setpublic boolean getConvertPipelineAndTxResults()
SrpConnection.closePipeline() and SrpConnection.exec() will be of the type returned by the SRP
driver
getConvertPipelineAndTxResults in interface RedisConnectionFactorypublic void setConvertPipelineAndTxResults(boolean convertPipelineAndTxResults)
SrpConnection.closePipeline() and SrpConnection.exec() will be of the type returned by the SRP
driver
convertPipelineAndTxResults - Whether or not to convert pipeline and tx results
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||