DATAREDIS-476 - Polishing.

Add author and getter method for SSL property. Apply formatting. Create test to validate SSL setting is set correctly in the lettuce driver.

Original pull request: #177.
This commit is contained in:
Mark Paluch
2016-03-11 15:40:04 +01:00
parent a9d8a6b388
commit 069954ee7a
2 changed files with 36 additions and 2 deletions

View File

@@ -69,6 +69,7 @@ import com.lambdaworks.redis.resource.ClientResources;
* @author Jennifer Hickey
* @author Thomas Darimont
* @author Mark Paluch
* @author Balázs Németh
*/
public class LettuceConnectionFactory implements InitializingBean, DisposableBean, RedisConnectionFactory {
@@ -143,7 +144,6 @@ public class LettuceConnectionFactory implements InitializingBean, DisposableBea
*/
public void afterPropertiesSet() {
this.client = createRedisClient();
}
/*
@@ -311,11 +311,22 @@ public class LettuceConnectionFactory implements InitializingBean, DisposableBea
/**
* Sets to use SSL connection
*
* @param useSsl {@literal true} to use SSL.
*/
public void setUseSsl(boolean useSsl){
public void setUseSsl(boolean useSsl) {
this.useSsl = useSsl;
}
/**
* Returns whether to use SSL.
*
* @return
*/
public boolean isUseSsl() {
return useSsl;
}
/**
* Indicates if validation of the native Lettuce connection is enabled
*