Package org.drools.ruleunits.api
Class RuleUnitConfig
- java.lang.Object
-
- org.drools.ruleunits.api.RuleUnitConfig
-
public class RuleUnitConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static RuleUnitConfigDefault
-
Constructor Summary
Constructors Constructor Description RuleUnitConfig(Optional<EventProcessingType> eventProcessingType, Optional<ClockType> clockType, OptionalInt sessionPool)RuleUnitConfig(EventProcessingType eventProcessingType, ClockType clockType, Integer sessionPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ClockType>getClockType()ClockTypegetDefaultedClockType()EventProcessingTypegetDefaultedEventProcessingType()OptionalIntgetDefaultedSessionPool()Optional<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(EventProcessingType eventProcessingType, ClockType clockType, Integer sessionPool)
-
RuleUnitConfig
public RuleUnitConfig(Optional<EventProcessingType> eventProcessingType, Optional<ClockType> clockType, OptionalInt sessionPool)
-
-
Method Detail
-
getEventProcessingType
public Optional<EventProcessingType> getEventProcessingType()
-
getDefaultedEventProcessingType
public EventProcessingType getDefaultedEventProcessingType()
-
getDefaultedClockType
public 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
-
-