|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(java.lang.Class type,
java.lang.String key)
Returns the cached entity identified by type and key. |
void |
remove(java.lang.Class type,
java.lang.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 |
public void add(IBasicEntity ent) throws CachingException
ent
- org.jasig.portal.concurrency.IBasicEntity
CachingException
public IBasicEntity get(java.lang.Class type, java.lang.String key) throws CachingException
type
- Classkey
- String
CachingException
public void remove(java.lang.Class type, java.lang.String key) throws CachingException
type
- Classkey
- String
CachingException
public void update(IBasicEntity ent) throws CachingException
ent
- org.jasig.portal.concurrency.IBasicEntity
CachingException
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |