|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Supported API: false
Extendable: false
Method Summary | |
void |
addCache(RuleCache cache,
RuleType ruleType)
Add a CacheManager to the list of caches managed
by this service for the specified RuleType . |
void |
addPostStoreTask(Persistable object,
com.objectspace.jgl.UnaryFunction task)
Add a task to be executed when a POST_STORE event is
received for the specified object. |
Method Detail |
public void addPostStoreTask(Persistable object, com.objectspace.jgl.UnaryFunction task)
POST_STORE
event is
received for the specified object.
The task is a UnaryFunction
that takes
one argument. When a POST_STORE
event is received for
the specified object, the function is called with that object as its
sole argument.
The functions are held in a weak map, so if the object is garbage
collected before it is persisted, the task will be removed.
Supported API: false
object
- task
- public void addCache(RuleCache cache, RuleType ruleType)
CacheManager
to the list of caches managed
by this service for the specified RuleType
.
These caches will be notified when the following events occur for a rule with the specified rule type:
wt.fc.PersistenceManagerEvent.POST_STORE
wt.fc.PersistenceManagerEvent.POST_DELETE
wt.fc.PersistenceManagerEvent.UPDATE
cache
- ruleType
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |