|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.concurrency.caching.MapBackedEntityCache
public class MapBackedEntityCache
Implements the uPortal caching API to wrap a Map based cache
| Constructor Summary | |
|---|---|
MapBackedEntityCache(Map<Serializable,IBasicEntity> cache,
Class<? extends IBasicEntity> entityType)
|
|
| Method Summary | |
|---|---|
void |
add(IBasicEntity entity)
|
void |
cleanupCache()
Deprecated. |
void |
clearCache()
Remove all entries from the cache. |
IBasicEntity |
get(String key)
|
Class<? extends IBasicEntity> |
getEntityType()
|
void |
remove(String entityKey)
|
int |
size()
Answers the number of entries in the cache. |
void |
update(IBasicEntity entity)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapBackedEntityCache(Map<Serializable,IBasicEntity> cache,
Class<? extends IBasicEntity> entityType)
| Method Detail |
|---|
public void add(IBasicEntity entity)
throws CachingException
add in interface IEntityCacheentity - - the entity to be cached.
CachingException
public void clearCache()
throws CachingException
IEntityCache
clearCache in interface IEntityCacheCachingExceptionpublic IBasicEntity get(String key)
get in interface IEntityCachekey - the key of the entity.
public Class<? extends IBasicEntity> getEntityType()
getEntityType in interface IEntityCachefor known types.
public void remove(String entityKey)
throws CachingException
remove in interface IEntityCacheentityKey - - the key of the entity to be un-cached.
CachingException
public void update(IBasicEntity entity)
throws CachingException
update in interface IEntityCacheentity - - the entity to be updated in the cache.
CachingExceptionpublic int size()
IEntityCache
size in interface IEntityCache
@Deprecated
public void cleanupCache()
throws CachingException
IEntityCache
cleanupCache in interface IEntityCacheCachingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||