public class DefaultTaskContext extends java.lang.Object implements TaskContext
TaskContext interface| Constructor and Description |
|---|
DefaultTaskContext() |
| Modifier and Type | Method and Description |
|---|---|
protected ConcurrentMapFactory |
getConcurrentMapFactory() |
protected ConfigurationService |
getConfigurationService() |
Tenant |
getCurrentTenant()
Get the currently active tenant
|
int |
getNumberOfThreads()
get the maximum number of threads to allocate for multi-thread execution
|
protected RuleEngineSpliteratorStrategy |
getRuleEngineSpliteratorStrategy() |
protected RulesModuleDao |
getRulesModuleDao() |
java.util.concurrent.ThreadFactory |
getThreadFactory()
get the thread factory to be used for creating the tenant-aware threads
|
java.lang.Long |
getThreadTimeout()
get the thread pre-destroy timeout
|
void |
setConcurrentMapFactory(ConcurrentMapFactory concurrentMapFactory) |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setCurrentTenant(Tenant currentTenant) |
void |
setRuleEngineSpliteratorStrategy(RuleEngineSpliteratorStrategy ruleEngineSpliteratorStrategy) |
void |
setRulesModuleDao(RulesModuleDao rulesModuleDao) |
void |
setThreadFactory(java.util.concurrent.ThreadFactory threadFactory) |
public Tenant getCurrentTenant()
TaskContextgetCurrentTenant in interface TaskContextpublic java.util.concurrent.ThreadFactory getThreadFactory()
TaskContextgetThreadFactory in interface TaskContextpublic int getNumberOfThreads()
TaskContextgetNumberOfThreads in interface TaskContextpublic java.lang.Long getThreadTimeout()
TaskContextgetThreadTimeout in interface TaskContextpublic void setCurrentTenant(Tenant currentTenant)
public void setThreadFactory(java.util.concurrent.ThreadFactory threadFactory)
public void setConfigurationService(ConfigurationService configurationService)
protected ConfigurationService getConfigurationService()
protected RulesModuleDao getRulesModuleDao()
public void setRulesModuleDao(RulesModuleDao rulesModuleDao)
protected ConcurrentMapFactory getConcurrentMapFactory()
public void setConcurrentMapFactory(ConcurrentMapFactory concurrentMapFactory)
protected RuleEngineSpliteratorStrategy getRuleEngineSpliteratorStrategy()
public void setRuleEngineSpliteratorStrategy(RuleEngineSpliteratorStrategy ruleEngineSpliteratorStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.