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