Package oracle.rules.rl.extensions.pool
Class RuleSessionFactory
java.lang.Object
oracle.rules.rl.extensions.pool.RuleSessionFactory
- All Implemented Interfaces:
Serializable
RuleSessionFactory is an efficient source of
RuleSession instances. Similar to a
RuleSessionPool, a RuleSessionFactory is
initialized with the rules that will be executed in
RuleSessions obtained from it. Once initialized, a
RuleSession can be obtained, used for rule execution, and then
discarded. As with the RuleSessionPool,
RuleSession instances obtained from the factory share
definitions, reducing heap consumption.
A
RuleSessionFactory is serializable allowing the factory to be
shared in a distributed execution environment.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRuleSessionFactory(List<String> rl) Construct a RuleSessionFactory given a list of RL text.RuleSessionFactory(List<String> rl, Map config) Construct a RuleSessionFactory given a list of RL text with the specified configuration parameters. -
Method Summary
-
Constructor Details
-
RuleSessionFactory
Construct a RuleSessionFactory given a list of RL text.- Parameters:
rl- the list of RL text.- Throws:
RLException- if an error occurs.
-
RuleSessionFactory
Construct a RuleSessionFactory given a list of RL text with the specified configuration parameters.- Parameters:
rl- the list of RL text.config- RuleSession configuration to be used when creating new instances. May be null.- Throws:
RLException- if an error occurs.
-
-
Method Details
-
getRuleSession
- Throws:
RLException
-