Class CosIdMachineStoreAutoConfiguration
java.lang.Object
me.ahoo.cosid.spring.boot.starter.store.CosIdMachineStoreAutoConfiguration
@AutoConfiguration(after={CosIdMachineAutoConfiguration.class,CosIdJdbcMachineIdDistributorAutoConfiguration.class,CosIdMongoMachineIdDistributorAutoConfiguration.class,CosIdProxyMachineIdDistributorAutoConfiguration.class,CosIdSpringRedisMachineIdDistributorAutoConfiguration.class,CosIdZookeeperMachineIdDistributorAutoConfiguration.class})
@EnableConfigurationProperties(MachineProperties.class)
public class CosIdMachineStoreAutoConfiguration
extends Object
Creates the machine id distributor with the
CosIdStoreProvider of the configured store type, when no
built-in backend bean was created: the application selected a provider of its own, or no backend of the type is on
the classpath (then startup fails naming the type).- Since:
- 3.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncosIdMachineIdDistributor(org.springframework.core.env.Environment environment, MachineProperties machineProperties, org.springframework.beans.factory.ObjectProvider<CosIdStoreProvider> providers, MachineStateStorage machineStateStorage, ClockBackwardsSynchronizer clockBackwardsSynchronizer)
-
Constructor Details
-
CosIdMachineStoreAutoConfiguration
public CosIdMachineStoreAutoConfiguration()
-
-
Method Details
-
cosIdMachineIdDistributor
@Bean @ConditionalOnMissingBean(MachineIdDistributor.class) public MachineIdDistributor cosIdMachineIdDistributor(org.springframework.core.env.Environment environment, MachineProperties machineProperties, org.springframework.beans.factory.ObjectProvider<CosIdStoreProvider> providers, MachineStateStorage machineStateStorage, ClockBackwardsSynchronizer clockBackwardsSynchronizer)
-