Package me.ahoo.cosid.spring.redis
Class SpringRedisIdSegmentDistributorFactory
java.lang.Object
me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributorFactory
- All Implemented Interfaces:
IdSegmentDistributorFactory
public class SpringRedisIdSegmentDistributorFactory
extends Object
implements IdSegmentDistributorFactory
Spring Redis IdSegmentDistributor Factory.
-
Constructor Summary
ConstructorsConstructorDescriptionSpringRedisIdSegmentDistributorFactory(org.springframework.data.redis.core.StringRedisTemplate redisTemplate) -
Method Summary
Modifier and TypeMethodDescription@NonNull IdSegmentDistributorcreate(IdSegmentDistributorDefinition definition) Creates an ID segment distributor from a definition.
-
Constructor Details
-
SpringRedisIdSegmentDistributorFactory
public SpringRedisIdSegmentDistributorFactory(org.springframework.data.redis.core.StringRedisTemplate redisTemplate)
-
-
Method Details
-
create
Description copied from interface:IdSegmentDistributorFactoryCreates an ID segment distributor from a definition.- Specified by:
createin interfaceIdSegmentDistributorFactory- Parameters:
definition- the distributor definition- Returns:
- the created distributor
-