|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuleCache
An external rule cache interface. External rule metadata is converted to java source files and then compiled during runtime. Once an external rule is compiled, the associated bytecode is cached for fast evaluation the subsequent times the same rule is encountered.
Method Summary | |
---|---|
void |
clear() clear the RuleCache. |
Rule |
get(RuleDefinition def) |
int |
getNumberOfRules() |
int |
getSizeInBytes() |
Rule |
put(RuleDefinition def, byte[] byteCode) |
Rule |
putInvalid(RuleDefinition def) |
void |
removeInactiveRules(double hours) |
Method Detail |
---|
Rule put(RuleDefinition def, byte[] byteCode)
def
- The RuleDefinition to be cached.byteCode
- Compiled bytecode version of the rule stored in def.Rule get(RuleDefinition def)
def
- The RuleDefinition to be retrieved from the cache.Rule putInvalid(RuleDefinition def)
def
- RuleDefinition that has been detected as invalid.int getSizeInBytes()
void clear()
void removeInactiveRules(double hours)
hours
- remove the rules from the cache that have not been accessed for specified number of hours.int getNumberOfRules()
|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |