org.apache.manifoldcf.core.cachemanager
Class GeneralCache.ObjectRecord

java.lang.Object
  extended by org.apache.manifoldcf.core.cachemanager.GeneralCache.ObjectRecord
Enclosing class:
GeneralCache

protected class GeneralCache.ObjectRecord
extends java.lang.Object

This class represents a cached object. It has enough hooks to allow it to live in all the various data structures the general cache maintains.


Field Summary
protected  long creationTime
           
protected  long expirationTime
           
protected  StringSet invalidationKeys
           
protected  GeneralCache.ObjectRecord nextLRU
           
protected  java.lang.String objectClass
           
protected  java.lang.Object objectDescription
           
protected  GeneralCache.ObjectRecord prevLRU
           
protected  GeneralCache.ObjectRecord sameExpirationNext
           
protected  GeneralCache.ObjectRecord sameExpirationPrev
           
protected  java.lang.Object theObject
           
 
Constructor Summary
GeneralCache.ObjectRecord(java.lang.Object objectDescription, java.lang.Object theObject, StringSet invalidationKeys, long creationTime)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 long getCreationTime()
           
 long getExpirationTime()
           
 StringSet getKeys()
           
 GeneralCache.ObjectRecord getNextLRU()
           
 java.lang.Object getObject()
           
 java.lang.String getObjectClass()
           
 java.lang.Object getObjectDescription()
           
 long getObjectExpiration()
           
 GeneralCache.ObjectRecord getPrevLRU()
           
 GeneralCache.ObjectRecord getSameExpirationNext()
           
 GeneralCache.ObjectRecord getSameExpirationPrev()
           
 int hashCode()
           
 void setNextLRU(GeneralCache.ObjectRecord next)
           
 void setObjectClass(java.lang.String className)
           
 void setObjectExpiration(long expTime)
           
 void setPrevLRU(GeneralCache.ObjectRecord prev)
           
 void setSameExpirationNext(GeneralCache.ObjectRecord x)
           
 void setSameExpirationPrev(GeneralCache.ObjectRecord x)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectDescription

protected java.lang.Object objectDescription

theObject

protected java.lang.Object theObject

invalidationKeys

protected StringSet invalidationKeys

creationTime

protected long creationTime

expirationTime

protected long expirationTime

objectClass

protected java.lang.String objectClass

prevLRU

protected GeneralCache.ObjectRecord prevLRU

nextLRU

protected GeneralCache.ObjectRecord nextLRU

sameExpirationPrev

protected GeneralCache.ObjectRecord sameExpirationPrev

sameExpirationNext

protected GeneralCache.ObjectRecord sameExpirationNext
Constructor Detail

GeneralCache.ObjectRecord

public GeneralCache.ObjectRecord(java.lang.Object objectDescription,
                                 java.lang.Object theObject,
                                 StringSet invalidationKeys,
                                 long creationTime)
Method Detail

getCreationTime

public long getCreationTime()

setSameExpirationPrev

public void setSameExpirationPrev(GeneralCache.ObjectRecord x)

getSameExpirationPrev

public GeneralCache.ObjectRecord getSameExpirationPrev()

setSameExpirationNext

public void setSameExpirationNext(GeneralCache.ObjectRecord x)

getSameExpirationNext

public GeneralCache.ObjectRecord getSameExpirationNext()

setObjectExpiration

public void setObjectExpiration(long expTime)

getObjectExpiration

public long getObjectExpiration()

getObjectDescription

public java.lang.Object getObjectDescription()

setObjectClass

public void setObjectClass(java.lang.String className)

getObjectClass

public java.lang.String getObjectClass()

getPrevLRU

public GeneralCache.ObjectRecord getPrevLRU()

getNextLRU

public GeneralCache.ObjectRecord getNextLRU()

setPrevLRU

public void setPrevLRU(GeneralCache.ObjectRecord prev)

setNextLRU

public void setNextLRU(GeneralCache.ObjectRecord next)

getObject

public java.lang.Object getObject()

getKeys

public StringSet getKeys()

getExpirationTime

public long getExpirationTime()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object