Example usage for org.springframework.integration.zookeeper.config CuratorFrameworkFactoryBean CuratorFrameworkFactoryBean

List of usage examples for org.springframework.integration.zookeeper.config CuratorFrameworkFactoryBean CuratorFrameworkFactoryBean

Introduction

In this page you can find the example usage for org.springframework.integration.zookeeper.config CuratorFrameworkFactoryBean CuratorFrameworkFactoryBean.

Prototype

public CuratorFrameworkFactoryBean(String connectionString) 

Source Link

Document

Construct an instance using the supplied connection string and using a default retry policy new ExponentialBackoffRetry(1000, 3) .

Usage

From source file:com.netflix.genie.web.configs.ZookeeperConfig.java

/**
 * The curator framework factory bean which will generate a valid Curator framework client for interacting with
 * Zookeeper from this Genie node./* w  w  w .  j av a2 s.com*/
 *
 * @param zookeeperProperties The properties for Zookeeper
 * @return The factory bean
 */
@Bean
public CuratorFrameworkFactoryBean curatorFrameworkFactory(final ZookeeperProperties zookeeperProperties) {
    return new CuratorFrameworkFactoryBean(zookeeperProperties.getConnectionString());
}