Class RuleCompilerFuture
java.lang.Object
de.hybris.platform.ruleengine.concurrency.impl.DefaultTaskExecutionFuture
de.hybris.platform.ruleengineservices.maintenance.RuleCompilerFuture
- All Implemented Interfaces:
TaskExecutionFuture<TaskResult>
The implementation of the rules compilation task future, used to collect the
RuleCompilerResult and wait for the
workers to join the main thread-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRuleCompilerResults(List<RuleCompilerResult> ruleCompilerResults) Adds the list ofRuleCompilerResultto this future.protected List<RuleCompilerResult>Blocks until the task execution finishes (all threads join) and returns the list ofRuleCompilerResultlongMethods inherited from class de.hybris.platform.ruleengine.concurrency.impl.DefaultTaskExecutionFuture
waitForTasksToFinishMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.ruleengine.concurrency.TaskExecutionFuture
waitForTasksToFinish, waitWhileWorkerIsRunning
-
Constructor Details
-
RuleCompilerFuture
-
-
Method Details
-
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
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
-