Search in sources :

Example 1 with PooledServiceConnectorConfig

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);
}
Also used : PooledServiceConnectorConfig(org.springframework.cloud.service.PooledServiceConnectorConfig) PoolConfig(org.springframework.cloud.service.PooledServiceConnectorConfig.PoolConfig) Bean(org.springframework.context.annotation.Bean)

Example 2 with PooledServiceConnectorConfig

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);
}
Also used : RedisConnectionFactoryConfig(org.springframework.cloud.service.keyval.RedisConnectionFactoryConfig) PooledServiceConnectorConfig(org.springframework.cloud.service.PooledServiceConnectorConfig) PoolConfig(org.springframework.cloud.service.PooledServiceConnectorConfig.PoolConfig) Bean(org.springframework.context.annotation.Bean)

Aggregations

PooledServiceConnectorConfig (org.springframework.cloud.service.PooledServiceConnectorConfig)2 PoolConfig (org.springframework.cloud.service.PooledServiceConnectorConfig.PoolConfig)2 Bean (org.springframework.context.annotation.Bean)2 RedisConnectionFactoryConfig (org.springframework.cloud.service.keyval.RedisConnectionFactoryConfig)1