02/28/2005
 

com.vignette.portal.cache
Class ExpiringCacheAction

java.lang.Object
  |
  +--com.vignette.portal.cache.CacheAction
        |
        +--com.vignette.portal.cache.ExpiringCacheAction

public class ExpiringCacheAction
extends CacheAction

Removes objects from the Store based on keys. This is used by implementations of ActionBasedCacheStrategy to provide traditional expiration semantics.

This is the default implementation of CacheAction.


Constructor Summary
ExpiringCacheAction()
           
 
Method Summary
 void onAction(Object key)
          This method is called when the CacheStrategy determines that action is needed for key.
 void onActions(Collection keys)
          This method is called when the CacheStrategy determines that action is needed for keys.
 
Methods inherited from class com.vignette.portal.cache.CacheAction
getStore, onAdd, onAddAll, onGet, onGetAll, onRemove, onRemoveAll, onRemoveAll, setStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpiringCacheAction

public ExpiringCacheAction()
Method Detail

onAction

public void onAction(Object key)
Description copied from class: CacheAction

This method is called when the CacheStrategy determines that action is needed for key.

Typical examples of this are when the key "expires" or when the cache is full and needs to remove a value that has not been used for a while.

Overrides:
onAction in class CacheAction
Following copied from class: com.vignette.portal.cache.CacheAction
Parameters:
key - the key for which action is needed

onActions

public void onActions(Collection keys)
Description copied from class: CacheAction

This method is called when the CacheStrategy determines that action is needed for keys.

Typical examples of this are when the keys "expire" or when the cache is full and needs to remove values that have not been used for a while.

Overrides:
onActions in class CacheAction
Following copied from class: com.vignette.portal.cache.CacheAction
Parameters:
keys - the collection of keys for which action is needed

02/28/2005
 

Copyright and Trademark Notices