Class CosIdZookeeperAutoConfiguration
java.lang.Object
me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(ZookeeperIdSegmentDistributorFactory.class)
@EnableConfigurationProperties(CosIdZookeeperProperties.class)
public class CosIdZookeeperAutoConfiguration
extends Object
CosId Zookeeper Auto Configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.curator.framework.CuratorFramework
cosidCuratorFramework
(CosIdZookeeperProperties zookeeperProperties, org.apache.curator.RetryPolicy retryPolicy) org.apache.curator.RetryPolicy
cosIdRetryPolicy
(CosIdZookeeperProperties zookeeperProperties)
-
Constructor Details
-
CosIdZookeeperAutoConfiguration
public CosIdZookeeperAutoConfiguration()
-
-
Method Details
-
cosIdRetryPolicy
@Bean @ConditionalOnMissingBean public org.apache.curator.RetryPolicy cosIdRetryPolicy(CosIdZookeeperProperties zookeeperProperties) -
cosidCuratorFramework
@Bean(destroyMethod="close") @ConditionalOnMissingBean public org.apache.curator.framework.CuratorFramework cosidCuratorFramework(CosIdZookeeperProperties zookeeperProperties, org.apache.curator.RetryPolicy retryPolicy) throws InterruptedException - Throws:
InterruptedException
-