Class DefaultTaskContext

  • All Implemented Interfaces:
    TaskContext

    public class DefaultTaskContext
    extends java.lang.Object
    implements TaskContext
    Default implementation of the TaskContext interface
    • Constructor Detail

      • DefaultTaskContext

        public DefaultTaskContext()
    • Method Detail

      • getThreadFactory

        public java.util.concurrent.ThreadFactory getThreadFactory()
        Description copied from interface: TaskContext
        get the thread factory to be used for creating the tenant-aware threads
        Specified by:
        getThreadFactory in interface TaskContext
        Returns:
        the thread factory implementation
      • getNumberOfThreads

        public int getNumberOfThreads()
        Description copied from interface: TaskContext
        get the maximum number of threads to allocate for multi-thread execution
        Specified by:
        getNumberOfThreads in interface TaskContext
        Returns:
        number of threads
      • getThreadTimeout

        public java.lang.Long getThreadTimeout()
        Description copied from interface: TaskContext
        get the thread pre-destroy timeout
        Specified by:
        getThreadTimeout in interface TaskContext
        Returns:
        number of milliseconds to wait before forcing the thread to join
      • setCurrentTenant

        public void setCurrentTenant​(Tenant currentTenant)
      • setThreadFactory

        public void setThreadFactory​(java.util.concurrent.ThreadFactory threadFactory)
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)
      • setRulesModuleDao

        public void setRulesModuleDao​(RulesModuleDao rulesModuleDao)
      • setConcurrentMapFactory

        public void setConcurrentMapFactory​(ConcurrentMapFactory concurrentMapFactory)
      • setRuleEngineSpliteratorStrategy

        public void setRuleEngineSpliteratorStrategy​(RuleEngineSpliteratorStrategy ruleEngineSpliteratorStrategy)