Class CosIdSpringRedisSegmentAutoConfiguration

java.lang.Object
me.ahoo.cosid.spring.boot.starter.segment.CosIdSpringRedisSegmentAutoConfiguration

@AutoConfiguration @EnableConfigurationProperties(SegmentIdProperties.class) @ConditionalOnClass(SpringRedisIdSegmentDistributor.class) @ConditionalOnProperty(value="cosid.segment.distributor.type", matchIfMissing=true, havingValue="redis") public class CosIdSpringRedisSegmentAutoConfiguration extends Object
CosId Spring Redis Segment AutoConfiguration.
  • Constructor Details

    • CosIdSpringRedisSegmentAutoConfiguration

      public CosIdSpringRedisSegmentAutoConfiguration()
  • Method Details

    • idSegmentDistributorFactory

      @Bean @ConditionalOnMissingBean public IdSegmentDistributorFactory idSegmentDistributorFactory(org.springframework.data.redis.core.StringRedisTemplate stringRedisTemplate)