Class RuleBaseConfiguration

All Implemented Interfaces:
Externalizable, Serializable, KieBaseOptionsConfiguration, OptionsConfiguration<KieBaseOption,SingleValueKieBaseOption,MultiValueKieBaseOption>, KieBaseConfiguration, PropertiesConfiguration, InternalPropertiesConfiguration

Available configuration options:
 drools.maintainTms = <true|false>
 drools.sequential = <true|false>
 drools.sequential.agenda = <sequential|dynamic>
 drools.removeIdentities = <true|false>
 drools.shareAlphaNodes  = <true|false>
 drools.shareBetaNodes = <true|false>
 drools.alphaNodeHashingThreshold = <1...n>
 drools.alphaNodeRangeIndexThreshold = <1...n>
 drools.betaNodeRangeIndexEnabled = <true|false>
 drools.sessionPool = <1...n>
 drools.compositeKeyDepth = <1..3>
 drools.indexLeftBetaMemory = <true/false>
 drools.indexRightBetaMemory = <true/false>
 drools.equalityBehavior = <identity|equality>
 drools.conflictResolver = <qualified class name>
 drools.consequenceExceptionHandler = <qualified class name>
 drools.ruleBaseUpdateHandler = <qualified class name>
 drools.sessionClock = <qualified class name>
 drools.mbeans = <enabled|disabled>
 drools.classLoaderCacheEnabled = <true|false>
 drools.declarativeAgendaEnabled =  <true|false>
 drools.permgenThreshold = <1...n>
 drools.jittingThreshold = <1...n>
 
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Overrides:
      writeExternal in class BaseConfiguration<KieBaseOption,SingleValueKieBaseOption,MultiValueKieBaseOption>
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Specified by:
      readExternal in interface Externalizable
      Overrides:
      readExternal in class BaseConfiguration<KieBaseOption,SingleValueKieBaseOption,MultiValueKieBaseOption>
      Throws:
      IOException
      ClassNotFoundException
    • getOption

      public <T extends SingleValueKieBaseOption> T getOption(OptionKey<T> option)
      Specified by:
      getOption in interface OptionsConfiguration<KieBaseOption,SingleValueKieBaseOption,MultiValueKieBaseOption>
    • setOption

      public void setOption(KieBaseOption option)
      Specified by:
      setOption in interface OptionsConfiguration<KieBaseOption,SingleValueKieBaseOption,MultiValueKieBaseOption>
    • setInternalProperty

      public boolean setInternalProperty(String name, String value)
      Specified by:
      setInternalProperty in interface InternalPropertiesConfiguration
    • getInternalProperty

      public String getInternalProperty(String name)
      Specified by:
      getInternalProperty in interface InternalPropertiesConfiguration
    • setSequential

      public void setSequential(boolean sequential)
    • isSequential

      public boolean isSequential()
    • isMaintainTms

      public boolean isMaintainTms()
    • setMaintainTms

      public void setMaintainTms(boolean maintainTms)
    • isRemoveIdentities

      public boolean isRemoveIdentities()
    • setRemoveIdentities

      public void setRemoveIdentities(boolean removeIdentities)
    • isShareAlphaNodes

      public boolean isShareAlphaNodes()
    • setShareAlphaNodes

      public void setShareAlphaNodes(boolean shareAlphaNodes)
    • isShareBetaNodes

      public boolean isShareBetaNodes()
    • setShareBetaNodes

      public void setShareBetaNodes(boolean shareBetaNodes)
    • getJittingThreshold

      public int getJittingThreshold()
    • setJittingThreshold

      public void setJittingThreshold(int jittingThreshold)
    • getAlphaNodeHashingThreshold

      public int getAlphaNodeHashingThreshold()
    • setAlphaNodeHashingThreshold

      public void setAlphaNodeHashingThreshold(int alphaNodeHashingThreshold)
    • getAlphaNodeRangeIndexThreshold

      public int getAlphaNodeRangeIndexThreshold()
    • setAlphaNodeRangeIndexThreshold

      public void setAlphaNodeRangeIndexThreshold(int alphaNodeRangeIndexThreshold)
    • isBetaNodeRangeIndexEnabled

      public boolean isBetaNodeRangeIndexEnabled()
    • setBetaNodeRangeIndexEnabled

      public void setBetaNodeRangeIndexEnabled(boolean betaNodeRangeIndexEnabled)
    • getSessionPoolSize

      public int getSessionPoolSize()
    • setSessionPoolSize

      public void setSessionPoolSize(int sessionPoolSize)
    • getAssertBehaviour

      public RuleBaseConfiguration.AssertBehaviour getAssertBehaviour()
    • setAssertBehaviour

      public void setAssertBehaviour(RuleBaseConfiguration.AssertBehaviour assertBehaviour)
    • getEventProcessingMode

      public EventProcessingOption getEventProcessingMode()
    • setEventProcessingMode

      public void setEventProcessingMode(EventProcessingOption mode)
    • getPrototypesOption

      public PrototypesOption getPrototypesOption()
    • setPrototypesOption

      public void setPrototypesOption(PrototypesOption prototypesOption)
    • getCompositeKeyDepth

      public int getCompositeKeyDepth()
    • setCompositeKeyDepth

      public void setCompositeKeyDepth(int compositeKeyDepth)
    • isIndexLeftBetaMemory

      public boolean isIndexLeftBetaMemory()
    • setIndexLeftBetaMemory

      public void setIndexLeftBetaMemory(boolean indexLeftBetaMemory)
    • isIndexRightBetaMemory

      public boolean isIndexRightBetaMemory()
    • setIndexRightBetaMemory

      public void setIndexRightBetaMemory(boolean indexRightBetaMemory)
    • getIndexPrecedenceOption

      public IndexPrecedenceOption getIndexPrecedenceOption()
    • setIndexPrecedenceOption

      public void setIndexPrecedenceOption(IndexPrecedenceOption precedence)
    • getConsequenceExceptionHandler

      public String getConsequenceExceptionHandler()
    • setConsequenceExceptionHandler

      public void setConsequenceExceptionHandler(String consequenceExceptionHandler)
    • getRuleBaseUpdateHandler

      public String getRuleBaseUpdateHandler()
    • setRuleBaseUpdateHandler

      public void setRuleBaseUpdateHandler(String ruleBaseUpdateHandler)
    • getSequentialAgenda

      public RuleBaseConfiguration.SequentialAgenda getSequentialAgenda()
    • setSequentialAgenda

      public void setSequentialAgenda(RuleBaseConfiguration.SequentialAgenda sequentialAgenda)
    • setParallelExecution

      public void setParallelExecution(ParallelExecutionOption parallelExecutionOption)
    • enforceSingleThreadEvaluation

      public void enforceSingleThreadEvaluation()
    • isParallelEvaluation

      public boolean isParallelEvaluation()
      Returns true if the partitioning of the rulebase is enabled and false otherwise. Default is false.
      Returns:
    • isParallelExecution

      public boolean isParallelExecution()
    • setMaxThreads

      public void setMaxThreads(int maxThreads)
      If multi-thread evaluation is enabled, this parameter configures the maximum number of threads each session can use for concurrent Rete propagation.
      Parameters:
      maxThreads - the maximum number of threads to use. If 0 or a negative number is set, the engine will use number of threads equal to the number of partitions in the rule base. Default number of threads is 0.
    • getMaxThreads

      public int getMaxThreads()
      Returns the configured number of maximum threads to use for concurrent propagation when multi-thread evaluation is enabled. Default is zero.
      Returns:
    • isDeclarativeAgenda

      public boolean isDeclarativeAgenda()
    • setDeclarativeAgendaEnabled

      public void setDeclarativeAgendaEnabled(boolean enabled)
      Enable declarative agenda
      Parameters:
      enabled -
    • addActivationListener

      public void addActivationListener(String name, ActivationListenerFactory factory)
    • getActivationListenerFactory

      public ActivationListenerFactory getActivationListenerFactory(String name)