|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.io.SerializableRuleBaseProxy
public class SerializableRuleBaseProxy
This wraps a rulebase, and makes it serializable by storing the binary ruleset data.
Constructor Summary | |
---|---|
SerializableRuleBaseProxy()
|
|
SerializableRuleBaseProxy(RuleBase ruleBase,
java.util.List ruleSetBinaries)
|
Method Summary | |
---|---|
ConflictResolver |
getConflictResolver()
Retrieve the ConflictResolver . |
WorkingMemory |
getCurrentThreadWorkingMemory()
Get or create a WorkingMemory session for this
RuleBase and the current thread. |
RuleBaseContext |
getRuleBaseContext()
|
java.util.List |
getRuleSets()
|
RuleBase |
getWrappedRuleBase()
|
WorkingMemory |
newWorkingMemory()
Create a new WorkingMemory session for this
RuleBase . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializableRuleBaseProxy()
public SerializableRuleBaseProxy(RuleBase ruleBase, java.util.List ruleSetBinaries)
Method Detail |
---|
public WorkingMemory newWorkingMemory()
RuleBase
WorkingMemory
session for this
RuleBase
.
The created WorkingMemory
uses the default conflict
resolution strategy.
newWorkingMemory
in interface RuleBase
WorkingMemory
.WorkingMemory
,
DefaultConflictResolver
public ConflictResolver getConflictResolver()
RuleBase
ConflictResolver
.
getConflictResolver
in interface RuleBase
public java.util.List getRuleSets()
getRuleSets
in interface RuleBase
public RuleBaseContext getRuleBaseContext()
getRuleBaseContext
in interface RuleBase
public WorkingMemory getCurrentThreadWorkingMemory()
RuleBase
WorkingMemory
session for this
RuleBase
and the current thread.
This is useful for web application users, and allows a long running working memory
that will be garbage collected when the thread ends. Uses a ThreadLocal
instance.
The created WorkingMemory
uses the default conflict
resolution strategy.
getCurrentThreadWorkingMemory
in interface RuleBase
WorkingMemory
or a new one if the current thread did
not have a working memory assigned.WorkingMemory
,
DefaultConflictResolver
public RuleBase getWrappedRuleBase()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |