use of org.springframework.cloud.service.PooledServiceConnectorConfig in project spring-cloud-connectors by spring-cloud.
the class RedisConnectionFactoryConfigWithServiceConfig method pool20Wait200.
@Bean
public RedisConnectionFactory pool20Wait200() {
PoolConfig poolConfig = new PoolConfig(20, 200);
PooledServiceConnectorConfig serviceConfig = new PooledServiceConnectorConfig(poolConfig);
return connectionFactory().redisConnectionFactory("my-service", serviceConfig);
}
use of org.springframework.cloud.service.PooledServiceConnectorConfig in project spring-cloud-connectors by spring-cloud.
the class RedisConnectionFactoryConfigWithServiceConfig method pool5_30Wait3000.
@Bean
public RedisConnectionFactory pool5_30Wait3000() {
PoolConfig poolConfig = new PoolConfig(5, 30, 3000);
PooledServiceConnectorConfig serviceConfig = new RedisConnectionFactoryConfig(poolConfig);
return connectionFactory().redisConnectionFactory("my-service", serviceConfig);
}
Aggregations