|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.concurrency.caching.ReferenceEntityCachingService
Caching service reference implementation.
Constructor Summary | |
ReferenceEntityCachingService()
ReferenceEntityCachingService constructor comment. |
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. |
IEntityCache |
getCache(java.lang.Class type)
Returns the IEntityCache for type . |
IEntityCache |
newCache(java.lang.Class type,
int maxSize,
int maxIdleTime,
int sweepInterval)
Factory method returns a new instance of IEntityCache
for type . |
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. |
static IEntityCachingService |
singleton()
|
void |
update(IBasicEntity ent)
Updates the entity in the cache and notifies peer caches. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReferenceEntityCachingService() throws CachingException
Method Detail |
public void add(IBasicEntity ent) throws CachingException
add
in interface IEntityCachingService
ent
- org.jasig.portal.IBasicEntity
CachingException
public IBasicEntity get(java.lang.Class type, java.lang.String key) throws CachingException
get
in interface IEntityCachingService
type
- Classkey
- String
CachingException
public IEntityCache getCache(java.lang.Class type) throws CachingException
IEntityCache
for type
.
type
- Class
CachingException
public IEntityCache newCache(java.lang.Class type, int maxSize, int maxIdleTime, int sweepInterval) throws CachingException
IEntityCache
for type
.
type
- ClassmaxSize
- int - the maximum size of the cache.maxIdleTime
- int - the idle time in milliseconds after which a cache entry may be purged.sweepInterval
- int - the period of time in milliseconds between cache sweeps.
CachingException
public void remove(java.lang.Class type, java.lang.String key) throws CachingException
remove
in interface IEntityCachingService
type
- Classkey
- String
CachingException
public static IEntityCachingService singleton() throws CachingException
CachingException
public void update(IBasicEntity ent) throws CachingException
update
in interface IEntityCachingService
ent
- org.jasig.portal.IBasicEntity
CachingException
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |