Class CosIdJdbcSegmentAutoConfiguration
java.lang.Object
me.ahoo.cosid.spring.boot.starter.segment.CosIdJdbcSegmentAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(SegmentIdProperties.class)
@ConditionalOnProperty(value="cosid.segment.distributor.type",
matchIfMissing=true,
havingValue="jdbc")
public class CosIdJdbcSegmentAutoConfiguration
extends Object
CosId Jdbc Segment AutoConfiguration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionidSegmentDistributorFactory
(DataSource dataSource, JdbcIdSegmentInitializer jdbcIdSegmentInitializer) jdbcIdSegmentInitializer
(DataSource dataSource)
-
Constructor Details
-
CosIdJdbcSegmentAutoConfiguration
-
-
Method Details
-
jdbcIdSegmentInitializer
@Bean @ConditionalOnMissingBean public JdbcIdSegmentInitializer jdbcIdSegmentInitializer(DataSource dataSource) -
idSegmentDistributorFactory
@Bean @ConditionalOnMissingBean public IdSegmentDistributorFactory idSegmentDistributorFactory(DataSource dataSource, JdbcIdSegmentInitializer jdbcIdSegmentInitializer)
-