Class RuleCompilerFuture
- java.lang.Object
-
- de.hybris.platform.ruleengine.concurrency.impl.DefaultTaskExecutionFuture
-
- de.hybris.platform.ruleengineservices.maintenance.RuleCompilerFuture
-
- All Implemented Interfaces:
TaskExecutionFuture<TaskResult>
public class RuleCompilerFuture extends DefaultTaskExecutionFuture
The implementation of the rules compilation task future, used to collect theRuleCompilerResultand wait for the workers to join the main thread
-
-
Constructor Summary
Constructors Constructor Description RuleCompilerFuture(java.util.Set<java.lang.Thread> workers, java.lang.Long workerPreDestroyTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRuleCompilerResults(java.util.List<RuleCompilerResult> ruleCompilerResults)Adds the list ofRuleCompilerResultto this future.protected java.util.List<RuleCompilerResult>getRuleCompilerResults()TaskResultgetTaskResult()Blocks until the task execution finishes (all threads join) and returns the list ofRuleCompilerResultlonggetWorkerPreDestroyTimeout()-
Methods inherited from class de.hybris.platform.ruleengine.concurrency.impl.DefaultTaskExecutionFuture
waitForTasksToFinish
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.ruleengine.concurrency.TaskExecutionFuture
waitForTasksToFinish, waitWhileWorkerIsRunning
-
-
-
-
Method Detail
-
getTaskResult
public TaskResult getTaskResult()
Blocks until the task execution finishes (all threads join) and returns the list ofRuleCompilerResult- Specified by:
getTaskResultin interfaceTaskExecutionFuture<TaskResult>- Overrides:
getTaskResultin classDefaultTaskExecutionFuture- Returns:
- list of
RuleCompilerResult
-
getWorkerPreDestroyTimeout
public long getWorkerPreDestroyTimeout()
- Specified by:
getWorkerPreDestroyTimeoutin interfaceTaskExecutionFuture<TaskResult>- Overrides:
getWorkerPreDestroyTimeoutin classDefaultTaskExecutionFuture
-
addRuleCompilerResults
public void addRuleCompilerResults(java.util.List<RuleCompilerResult> ruleCompilerResults)
Adds the list ofRuleCompilerResultto this future. These results are supposed to keep track of the rule compilation execution within the same rules partition- Parameters:
ruleCompilerResults- list ofRuleCompilerResult
-
getRuleCompilerResults
protected java.util.List<RuleCompilerResult> getRuleCompilerResults()
-
-