|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ICacheExecutor
This interface describes an object designed to be instantiated solely for the purpose of running inside the global cache manager's execution method. The cache manager will perform all synchronization, and for objects being accessed will call either the create*() family of methods below, or the exists() method, if the object was found in the cache. For all existing objects being invalidated, the destroy() method will be called. It IS legal to specify the same object for both read and invalidate! In this case, both the create() or exists() sequence AND the destroy() method will be called. Finally, after this has been done for all of the requested objects, the execute() method will be called. Users of the cache manager will need to create objects implementing this interface when they want to operate on a set of cached objects. NOTE: Objects that are created by a cache executor must obey the following rule: A given objectDescription must always have the same invalidation keys, regardless of which cache executor object creates them, and regardless of WHEN the object is instantiated. This is required in order to ensure that the locks thrown by the cache manager are correct.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
| Method Summary | |
|---|---|
java.lang.Object[] |
create(ICacheDescription[] objectDescriptions)
Create a set of new objects to operate on and cache. |
void |
execute()
Perform the desired operation. |
void |
exists(ICacheDescription objectDescription,
java.lang.Object cachedObject)
Notify the implementing class of the existence of a cached version of the object. |
| Field Detail |
|---|
static final java.lang.String _rcsid
| Method Detail |
|---|
java.lang.Object[] create(ICacheDescription[] objectDescriptions)
throws ManifoldCFException
objectDescriptions - is the set of unique identifier of the object.
ManifoldCFException
void exists(ICacheDescription objectDescription,
java.lang.Object cachedObject)
throws ManifoldCFException
objectDescription - is the unique identifier of the object.cachedObject - is the cached object.
ManifoldCFException
void execute()
throws ManifoldCFException
ManifoldCFException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||