Package me.ahoo.cosid.segment
Interface IdSegmentDistributorFactory
- All Known Implementing Classes:
GroupedIdSegmentDistributorFactory,JdbcIdSegmentDistributorFactory,MongoIdSegmentDistributorFactory,MongoReactiveIdSegmentDistributorFactory,ProxyIdSegmentDistributorFactory,SpringRedisIdSegmentDistributorFactory,ZookeeperIdSegmentDistributorFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory interface for creating
IdSegmentDistributor instances.-
Method Summary
Modifier and TypeMethodDescription@NonNull IdSegmentDistributorcreate(IdSegmentDistributorDefinition definition) Creates an ID segment distributor from a definition.
-
Method Details
-
create
Creates an ID segment distributor from a definition.- Parameters:
definition- the distributor definition- Returns:
- the created distributor
-