Class CookieManager.CookiesDescription
- java.lang.Object
-
- org.apache.manifoldcf.core.cachemanager.BaseDescription
-
- org.apache.manifoldcf.crawler.connectors.webcrawler.CookieManager.CookiesDescription
-
- All Implemented Interfaces:
org.apache.manifoldcf.core.interfaces.ICacheDescription
- Enclosing class:
- CookieManager
protected static class CookieManager.CookiesDescription extends org.apache.manifoldcf.core.cachemanager.BaseDescriptionThis is the object description for a session key object. This is the key that is used to look up cached data.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.manifoldcf.core.interfaces.StringSetcacheKeysprotected java.lang.StringcriticalSectionNameprotected java.lang.StringsessionKey
-
Constructor Summary
Constructors Constructor Description CookiesDescription(java.lang.String sessionKey, org.apache.manifoldcf.core.interfaces.StringSet invKeys)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetCriticalSectionName()org.apache.manifoldcf.core.interfaces.ICacheClassgetObjectClass()Get the object class for an object.org.apache.manifoldcf.core.interfaces.StringSetgetObjectKeys()Get the cache keys for an object (which may or may not exist yet in the cache).java.lang.StringgetSessionKey()inthashCode()
-
-
-
Method Detail
-
getSessionKey
public java.lang.String getSessionKey()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getCriticalSectionName
public java.lang.String getCriticalSectionName()
-
getObjectKeys
public org.apache.manifoldcf.core.interfaces.StringSet getObjectKeys()
Get the cache keys for an object (which may or may not exist yet in the cache). This method is called in order for cache manager to throw the correct locks.- Returns:
- the object's cache keys, or null if the object should not be cached.
-
getObjectClass
public org.apache.manifoldcf.core.interfaces.ICacheClass getObjectClass()
Get the object class for an object. The object class is used to determine the group of objects treated in the same LRU manner.- Specified by:
getObjectClassin interfaceorg.apache.manifoldcf.core.interfaces.ICacheDescription- Overrides:
getObjectClassin classorg.apache.manifoldcf.core.cachemanager.BaseDescription- Returns:
- the newly created object's object class, or null if there is no such class, and LRU behavior is not desired.
-
-