use of org.springframework.data.redis.connection.lettuce.LettucePoolingClientConfiguration in project spring-cloud-connectors by spring-cloud.
the class RedisConnectionFactoryCloudConfigTestHelper method assertPoolProperties.
public static void assertPoolProperties(RedisConnectionFactory connector, int maxActive, int minIdle, long maxWait) {
GenericObjectPoolConfig poolConfig = null;
if (connector instanceof JedisConnectionFactory) {
poolConfig = ((JedisConnectionFactory) connector).getPoolConfig();
} else if (connector instanceof LettuceConnectionFactory) {
LettuceClientConfiguration config = ((LettuceConnectionFactory) connector).getClientConfiguration();
assertThat(config, instanceOf(LettucePoolingClientConfiguration.class));
poolConfig = ((LettucePoolingClientConfiguration) config).getPoolConfig();
}
assertCommonsPoolProperties(poolConfig, maxActive, minIdle, maxWait);
}
Aggregations