Package me.ahoo.cosid.spring.boot.starter.store
package me.ahoo.cosid.spring.boot.starter.store
-
ClassDescriptionA provider registered by one of the starter's own auto-configurations.On a built-in machine backend bean: create it unless the application selects a
CosIdStoreProviderof its own.On a built-in segment backend bean: create it unless the application selects aCosIdStoreProviderof its own.Matches whencosid.machine.distributor.typeisConditionalOnMachineStoreType.value(), compared asStoreTypesdo.Matches whencosid.segment.distributor.typeisConditionalOnSegmentStoreType.value(), compared asStoreTypesdo.Creates the machine id distributor with theCosIdStoreProviderof 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).Creates the id segment distributor factory with theCosIdStoreProviderof 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).A backend for the starter: creates the machine id distributor and/or the id segment distributor factory of one store type.Picks theCosIdStoreProviderof a store type.What aCosIdStoreProvidergets to create a machine id distributor.What aCosIdStoreProvidergets to create an id segment distributor factory.Store types (cosid.machine.distributor.type,cosid.segment.distributor.type) compare like Spring's relaxed binding of enums: only letters and digits count, without case, sostateful_set,stateful-set,STATEFUL_SET,statefulSetandstatefulsetare one type.