com.webobjects.appserver
Class WOSession.PageFragmentCache
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,com.webobjects.appserver._private.WOTransactionRecord>
com.webobjects.appserver.WOSession.PageFragmentCache
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,com.webobjects.appserver._private.WOTransactionRecord>
- Enclosing class:
- WOSession
public static class WOSession.PageFragmentCache
- extends LinkedHashMap<String,com.webobjects.appserver._private.WOTransactionRecord>
Used primarily in Ajax style page caching. We remove the eldest entry if the page frament cache size has grown beyone
2X the settting for WOApplication.pageFragmentCacheSize().
- Since:
- 5.4
- See Also:
- Serialized Form
Methods inherited from interface java.util.Map |
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
WOSession.PageFragmentCache
public WOSession.PageFragmentCache()
removeEldestEntry
protected boolean removeEldestEntry(Map.Entry<String,com.webobjects.appserver._private.WOTransactionRecord> eldest)
- Overrides:
removeEldestEntry
in class LinkedHashMap<String,com.webobjects.appserver._private.WOTransactionRecord>
pageForContextID
public WOComponent pageForContextID(String contextID)
- For a given contextID, return the page.
- Parameters:
contextID
-
- Returns:
- WOComponent
- Since:
- 5.4
cleanPageCache
public boolean cleanPageCache(String fragmentKey)
- Maintenance the page fragement cache. Remove the oldest entry if we're about to add a new one and that would put us over the cache size.
Also, clears out expired pages from the cache when invoked.
- Parameters:
fragmentKey
- if null, will perform maintenance on the cache
- Returns:
- boolean true if cache entry successfully cleared
- Since:
- 5.4
Copyright © 2000-2007 Apple Inc.