Interface RuleEngineSpliteratorStrategy

All Known Implementing Classes:
DefaultRuleEngineSpliteratorStrategy, DefaultRuleEngineTaskProcessor

public interface RuleEngineSpliteratorStrategy
The interface for the properties decision strategy for spliterator
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    get the number of threads to be allocated for spliterator
    static int
    getPartitionSize(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 size
      numberOfPartitions - number of partitions to allocate
      Returns:
      size of a single partition