net.sf.jportlet.service.cache
Interface CacheRegion

All Known Implementing Classes:
CacheRegionImpl

public interface CacheRegion

The CacheRegion manages a set of Cacheable objects.

Author:
Herve Tchepannou

Method Summary
 net.sf.jportlet.service.cache.Cacheable get(java.lang.Object id)
          Return an object from the cache, or null if the object not in the cache
 java.lang.Object getId()
          Returns the unique identifier of the region
 void put(net.sf.jportlet.service.cache.Cacheable obj)
          Put an object into the cache
 void removeExpiredObject()
          Remove all the expired object from the region.
 

Method Detail

get

public net.sf.jportlet.service.cache.Cacheable get(java.lang.Object id)
Return an object from the cache, or null if the object not in the cache

Parameters:
id - identificer of the object
Returns:
Cacheable

getId

public java.lang.Object getId()
Returns the unique identifier of the region

Returns:
Object

put

public void put(net.sf.jportlet.service.cache.Cacheable obj)
Put an object into the cache

Parameters:
obj -

removeExpiredObject

public void removeExpiredObject()
Remove all the expired object from the region. This method is called periodically by a Thread



Copyright © 2002 Herve Tchepannou. All Rights Reserved.