@Configuration
public class ZooKeeperConnectionConfiguration {
@Bean
ZooKeeperConnectionConfigurer zooKeeperConnectionConfigurer() {
return new ZooKeeperConnectionConfigurer() {
@Override
public void configureZooKeeperConnection(ZooKeeperConnection zooKeeperConnection) {
zooKeeperConnection.setRetryPolicy(new RetryPolicy() {