Package me.ahoo.cosid.segment.grouped
Class GroupedIdSegmentDistributorFactory
java.lang.Object
me.ahoo.cosid.segment.grouped.GroupedIdSegmentDistributorFactory
- All Implemented Interfaces:
IdSegmentDistributorFactory
public class GroupedIdSegmentDistributorFactory
extends Object
implements IdSegmentDistributorFactory
Factory for creating grouped ID segment distributors.
Wraps an existing factory with grouping support.
-
Constructor Summary
ConstructorsConstructorDescriptionGroupedIdSegmentDistributorFactory(GroupBySupplier groupBySupplier, IdSegmentDistributorFactory actual) Creates a factory with grouping support. -
Method Summary
Modifier and TypeMethodDescription@NonNull IdSegmentDistributorcreate(IdSegmentDistributorDefinition definition) Creates an ID segment distributor from a definition.
-
Constructor Details
-
GroupedIdSegmentDistributorFactory
public GroupedIdSegmentDistributorFactory(GroupBySupplier groupBySupplier, IdSegmentDistributorFactory actual) Creates a factory with grouping support.- Parameters:
groupBySupplier- the group supplieractual- the underlying factory
-
-
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
-