|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEntityCachingService
Defines an api for a caching service that caches and retrieves
IBasicEntities. Cached entities of a given type are
stored in an IEntityCache. The service manages
access to these caches and is respon sible for initiating any
cache clean up or invalidation.
The actual caching api is minimal:
void add(IBasicEntity entity);
IBasicEntity get(Class type, String key);
void remove(Class type, String key);
void update(IBasicEntity entity);
IBasicEntity,
IEntityCache| Method Summary | |
|---|---|
void |
add(IBasicEntity ent)
Adds the entity to the cache. |
IBasicEntity |
get(Class<? extends IBasicEntity> type,
String key)
Returns the cached entity identified by type and key. |
void |
remove(Class<? extends IBasicEntity> type,
String key)
Removes the cached entity identified by type and key from the cache and notifies peer caches. |
void |
update(IBasicEntity ent)
Updates the entity in the cache and notifies peer caches. |
| Method Detail |
|---|
void add(IBasicEntity ent)
throws CachingException
ent - org.jasig.portal.concurrency.IBasicEntity
CachingException
IBasicEntity get(Class<? extends IBasicEntity> type,
String key)
throws CachingException
type - Classkey - String
CachingException
void remove(Class<? extends IBasicEntity> type,
String key)
throws CachingException
type - Classkey - String
CachingException
void update(IBasicEntity ent)
throws CachingException
ent - org.jasig.portal.concurrency.IBasicEntity
CachingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||