Interface RuleEngineSpliteratorStrategy
- All Known Implementing Classes:
DefaultRuleEngineSpliteratorStrategy,DefaultRuleEngineTaskProcessor
public interface RuleEngineSpliteratorStrategy
The interface for the properties decision strategy for spliterator
-
Method Summary
Modifier and TypeMethodDescriptionintget the number of threads to be allocated for spliteratorstatic intgetPartitionSize(int totalSize, int numberOfPartitions) calculate the partition size based on total size and the number of partitions to allocate
-
Method Details
-
getNumberOfThreads
int getNumberOfThreads()get the number of threads to be allocated for spliterator- Returns:
- number of threads to allocate
-
getPartitionSize
static int getPartitionSize(int totalSize, int numberOfPartitions) calculate the partition size based on total size and the number of partitions to allocate- Parameters:
totalSize- total sizenumberOfPartitions- number of partitions to allocate- Returns:
- size of a single partition
-