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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user