| org.sape.carbon.services.cache.mru.BaseMRUCacheConfiguration
BaseMRUCacheConfiguration | public interface BaseMRUCacheConfiguration extends ComponentConfiguration(Code) | | The configuration interface for the DefaultMRUCacheImpl implementation.
Copyright 2002 Sapient
since: carbon 1.0 author: Doug Voet, April 2002 version: $Revision: 1.9 $($Author: dvoet $ / $Date: 2003/05/05 21:21:07 $) |
Method Summary | |
Integer | getCapacity() Capacity specifies the maximum number a data elements the cache can
hold before it starts to drop the least recently used elements. | Long | getExpirationInterval() ExpirationInterval specifies the time after which a datum has been
loaded into the cache it must be reloaded. | void | setCapacity(Integer capacity) Capacity specifies the maximum number a data elements the cache can
hold before it starts to drop the least recently used elements. | void | setExpirationInterval(Long expirationInterval) ExpirationInterval specifies the time after which a datum has been
loaded into the cache it must be reloaded. |
getCapacity | Integer getCapacity()(Code) | | Capacity specifies the maximum number a data elements the cache can
hold before it starts to drop the least recently used elements.
the value of capacity |
getExpirationInterval | Long getExpirationInterval()(Code) | | ExpirationInterval specifies the time after which a datum has been
loaded into the cache it must be reloaded. If this value is not
specifed, cached items will only be loaded if the cache is refreshed
or if it falls out of the cache due to lack of use.
Long |
setCapacity | void setCapacity(Integer capacity)(Code) | | Capacity specifies the maximum number a data elements the cache can
hold before it starts to drop the least recently used elements.
Parameters: capacity - value of the capacity |
setExpirationInterval | void setExpirationInterval(Long expirationInterval)(Code) | | ExpirationInterval specifies the time after which a datum has been
loaded into the cache it must be reloaded. If this value is not
specifed, cached items will only be loaded if the cache is refreshed
or if it falls out of the cache due to lack of use.
Parameters: expirationInterval - value of the expiration interval |
|
|