Package org.drools.base.common
Class PartitionsManager
- java.lang.Object
-
- org.drools.base.common.PartitionsManager
-
public class PartitionsManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_PARALLEL_THRESHOLDstatic intMIN_PARALLEL_THRESHOLD
-
Constructor Summary
Constructors Constructor Description PartitionsManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.ExecutorServiceborrowFireUntilHaltExecutors()RuleBasePartitionIdcreateNewPartitionId()static voiddoOnForkJoinPool(java.lang.Runnable task)static <T> TdoOnForkJoinPool(java.util.concurrent.Callable<T> task)intgetParallelEvaluationSlotsCount()booleanhasParallelEvaluation()voidinit()static voidofferFireUntilHaltExecutors(java.util.concurrent.ExecutorService executor)
-
-
-
Field Detail
-
MIN_PARALLEL_THRESHOLD
public static final int MIN_PARALLEL_THRESHOLD
- See Also:
- Constant Field Values
-
MAX_PARALLEL_THRESHOLD
public static final int MAX_PARALLEL_THRESHOLD
- See Also:
- Constant Field Values
-
-
Method Detail
-
createNewPartitionId
public RuleBasePartitionId createNewPartitionId()
-
hasParallelEvaluation
public boolean hasParallelEvaluation()
-
getParallelEvaluationSlotsCount
public int getParallelEvaluationSlotsCount()
-
init
public void init()
-
doOnForkJoinPool
public static void doOnForkJoinPool(java.lang.Runnable task)
-
doOnForkJoinPool
public static <T> T doOnForkJoinPool(java.util.concurrent.Callable<T> task)
-
borrowFireUntilHaltExecutors
public static java.util.concurrent.ExecutorService borrowFireUntilHaltExecutors()
-
offerFireUntilHaltExecutors
public static void offerFireUntilHaltExecutors(java.util.concurrent.ExecutorService executor)
-
-