Example usage for org.springframework.data.gemfire.client PoolFactoryBean afterPropertiesSet

List of usage examples for org.springframework.data.gemfire.client PoolFactoryBean afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.data.gemfire.client PoolFactoryBean afterPropertiesSet.

Prototype

@Override
public void afterPropertiesSet() throws Exception 

Source Link

Document

Prepares the construction, configuration and initialization of a new Pool .

Usage

From source file:com.acmemotors.gf.Main.java

@Bean
PoolFactoryBean poolFactoryBean(@Value("${gf.server.port}") int serverPort,
        @Value("${gf.server.host}") String host) throws Exception {
    PoolFactoryBean factoryBean = new PoolFactoryBean();
    factoryBean.setName("my-pool");
    factoryBean.setServers(Collections.singletonList(new InetSocketAddress(host, serverPort)));
    factoryBean.afterPropertiesSet();
    return factoryBean;
}

From source file:com.acmemotors.rest.Main.java

@Bean
PoolFactoryBean poolFactoryBean(@Value("${gf.server.port}") int serverPort,
        @Value("${gf.server.host}") String serverHost) throws Exception {
    PoolFactoryBean factoryBean = new PoolFactoryBean();
    factoryBean.setName("my-pool");
    factoryBean.setServers(Collections.singletonList(new InetSocketAddress(serverHost, serverPort)));
    factoryBean.afterPropertiesSet();
    return factoryBean;
}