Class CosIdZookeeperMachineIdDistributorAutoConfiguration
java.lang.Object
me.ahoo.cosid.spring.boot.starter.machine.CosIdZookeeperMachineIdDistributorAutoConfiguration
@AutoConfiguration
@ConditionalOnMachineStoreType("zookeeper")
@ConditionalOnClass(ZookeeperMachineLeaseStore.class)
public class CosIdZookeeperMachineIdDistributorAutoConfiguration
extends Object
CosId Zookeeper MachineIdDistributor AutoConfiguration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncosIdZookeeperMachineStoreProvider(org.springframework.beans.factory.ObjectProvider<org.apache.curator.framework.CuratorFramework> curatorFramework) The ZooKeeper backend forCosIdStoreProviderselection.zookeeperMachineIdDistributor(ZookeeperMachineLeaseStore zookeeperMachineLeaseStore, MachineStateStorage localMachineState, ClockBackwardsSynchronizer clockBackwardsSynchronizer) zookeeperMachineLeaseStore(org.apache.curator.framework.CuratorFramework curatorFramework, MachineProperties machineProperties) The machine id lease store on ZooKeeper; every call is bounded bycosid.machine.distributor.zookeeper.timeout.
-
Constructor Details
-
CosIdZookeeperMachineIdDistributorAutoConfiguration
public CosIdZookeeperMachineIdDistributorAutoConfiguration()
-
-
Method Details
-
zookeeperMachineLeaseStore
@Bean @ConditionalOnMissingBean @ConditionalOnBuiltInMachineStore public ZookeeperMachineLeaseStore zookeeperMachineLeaseStore(org.apache.curator.framework.CuratorFramework curatorFramework, MachineProperties machineProperties) The machine id lease store on ZooKeeper; every call is bounded bycosid.machine.distributor.zookeeper.timeout. -
zookeeperMachineIdDistributor
@Bean @ConditionalOnMissingBean(MachineIdDistributor.class) @ConditionalOnBuiltInMachineStore public LeaseStoreMachineIdDistributor zookeeperMachineIdDistributor(ZookeeperMachineLeaseStore zookeeperMachineLeaseStore, MachineStateStorage localMachineState, ClockBackwardsSynchronizer clockBackwardsSynchronizer) -
cosIdZookeeperMachineStoreProvider
@Bean public BuiltInStoreProvider cosIdZookeeperMachineStoreProvider(org.springframework.beans.factory.ObjectProvider<org.apache.curator.framework.CuratorFramework> curatorFramework) The ZooKeeper backend forCosIdStoreProviderselection.
-