Package me.ahoo.cosid.mongo.reactive
Class MongoReactiveIdSegmentDistributorFactory
java.lang.Object
me.ahoo.cosid.mongo.reactive.MongoReactiveIdSegmentDistributorFactory
- All Implemented Interfaces:
IdSegmentDistributorFactory
public class MongoReactiveIdSegmentDistributorFactory
extends Object
implements IdSegmentDistributorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionMongoReactiveIdSegmentDistributorFactory(com.mongodb.reactivestreams.client.MongoDatabase mongoDatabase) -
Method Summary
Modifier and TypeMethodDescription@NonNull IdSegmentDistributorcreate(IdSegmentDistributorDefinition definition) Creates an ID segment distributor from a definition.
-
Constructor Details
-
MongoReactiveIdSegmentDistributorFactory
public MongoReactiveIdSegmentDistributorFactory(com.mongodb.reactivestreams.client.MongoDatabase mongoDatabase)
-
-
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
-