Class NullBucketContentFactory
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.activity.run.buckets.segmentation.NullBucketContentFactory
-
- All Implemented Interfaces:
BucketContentFactory
public class NullBucketContentFactory extends Object implements BucketContentFactory
Implements work state "segmentation" into single null work bucket.
-
-
Constructor Summary
Constructors Constructor Description NullBucketContentFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractWorkBucketContentType
createNextBucketContent(AbstractWorkBucketContentType lastBucketContent, Integer lastBucketSequentialNumber)
Creates a content for the next bucket in a sequence.Integer
estimateNumberOfBuckets()
Estimates total number of buckets.
-
-
-
Method Detail
-
createNextBucketContent
public AbstractWorkBucketContentType createNextBucketContent(AbstractWorkBucketContentType lastBucketContent, Integer lastBucketSequentialNumber) throws SchemaException
Description copied from interface:BucketContentFactory
Creates a content for the next bucket in a sequence.- Specified by:
createNextBucketContent
in interfaceBucketContentFactory
- Returns:
- null if there is no next bucket
- Throws:
SchemaException
-
estimateNumberOfBuckets
public Integer estimateNumberOfBuckets()
Description copied from interface:BucketContentFactory
Estimates total number of buckets.- Specified by:
estimateNumberOfBuckets
in interfaceBucketContentFactory
- Returns:
- null if the number cannot be determined
-
-