Package org.drools.ruleunits.impl
Class RuleUnitConfig
- java.lang.Object
-
- org.drools.ruleunits.impl.RuleUnitConfig
-
public class RuleUnitConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static RuleUnitConfigDefault
-
Constructor Summary
Constructors Constructor Description RuleUnitConfig(Optional<org.drools.ruleunits.api.conf.EventProcessingType> eventProcessingType, Optional<org.drools.ruleunits.api.conf.ClockType> clockType, OptionalInt sessionPool)RuleUnitConfig(org.drools.ruleunits.api.conf.EventProcessingType eventProcessingType, org.drools.ruleunits.api.conf.ClockType clockType, Integer sessionPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<org.drools.ruleunits.api.conf.ClockType>getClockType()org.drools.ruleunits.api.conf.ClockTypegetDefaultedClockType()org.drools.ruleunits.api.conf.EventProcessingTypegetDefaultedEventProcessingType()OptionalIntgetDefaultedSessionPool()Optional<org.drools.ruleunits.api.conf.EventProcessingType>getEventProcessingType()OptionalIntgetSessionPool()RuleUnitConfigmerged(RuleUnitConfig overrides)return the merged config with the given.
-
-
-
Field Detail
-
Default
public static final RuleUnitConfig Default
-
-
Constructor Detail
-
RuleUnitConfig
public RuleUnitConfig(org.drools.ruleunits.api.conf.EventProcessingType eventProcessingType, org.drools.ruleunits.api.conf.ClockType clockType, Integer sessionPool)
-
RuleUnitConfig
public RuleUnitConfig(Optional<org.drools.ruleunits.api.conf.EventProcessingType> eventProcessingType, Optional<org.drools.ruleunits.api.conf.ClockType> clockType, OptionalInt sessionPool)
-
-
Method Detail
-
getEventProcessingType
public Optional<org.drools.ruleunits.api.conf.EventProcessingType> getEventProcessingType()
-
getDefaultedEventProcessingType
public org.drools.ruleunits.api.conf.EventProcessingType getDefaultedEventProcessingType()
-
getClockType
public Optional<org.drools.ruleunits.api.conf.ClockType> getClockType()
-
getDefaultedClockType
public org.drools.ruleunits.api.conf.ClockType getDefaultedClockType()
-
getSessionPool
public OptionalInt getSessionPool()
-
getDefaultedSessionPool
public OptionalInt getDefaultedSessionPool()
-
merged
public RuleUnitConfig merged(RuleUnitConfig overrides)
return the merged config with the given. Given config keys win over this
-
-