use of org.springframework.data.redis.connection.lettuce.LettucePoolingClientConfiguration.LettucePoolingClientConfigurationBuilder in project spring-cloud-connectors by spring-cloud.
the class RedisLettuceClientConfigurer method configurePool.
private void configurePool(LettuceClientConfigurationBuilder clientConfiguration, PooledServiceConnectorConfig config) {
if (config.getPoolConfig() != null) {
GenericObjectPoolConfig poolConfig = new GenericObjectPoolConfig();
BeanWrapper target = new BeanWrapperImpl(poolConfig);
BeanWrapper source = new BeanWrapperImpl(config.getPoolConfig());
Util.setCorrespondingProperties(target, source);
((LettucePoolingClientConfigurationBuilder) clientConfiguration).poolConfig(poolConfig);
}
}
Aggregations