Class GeneralCache.ExpirationTreeNode
- java.lang.Object
-
- org.apache.manifoldcf.core.cachemanager.GeneralCache.ExpirationTreeNode
-
- Enclosing class:
- GeneralCache
protected class GeneralCache.ExpirationTreeNode extends java.lang.ObjectThis class represents a node in the expiration tree. The node has a pool of size at least one containing object records with the same expiration date.
-
-
Field Summary
Fields Modifier and Type Field Description protected GeneralCache.ObjectRecordfirstSameprotected GeneralCache.ExpirationTreeNodegreaterprotected GeneralCache.ObjectRecordlastSameprotected GeneralCache.ExpirationTreeNodelesser
-
Constructor Summary
Constructors Constructor Description ExpirationTreeNode(GeneralCache.ObjectRecord record)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddObjectRecord(GeneralCache.ObjectRecord x)longgetExpirationTime()GeneralCache.ExpirationTreeNodegetGreater()GeneralCache.ExpirationTreeNodegetLesser()GeneralCache.ObjectRecordgetOldest()booleanremoveObjectRecord(GeneralCache.ObjectRecord x)Returns true if this removal was the last one (in which case the tree node is now invalid, and should be removed from the tree)voidsetGreater(GeneralCache.ExpirationTreeNode greater)voidsetLesser(GeneralCache.ExpirationTreeNode lesser)
-
-
-
Field Detail
-
lesser
protected GeneralCache.ExpirationTreeNode lesser
-
greater
protected GeneralCache.ExpirationTreeNode greater
-
firstSame
protected GeneralCache.ObjectRecord firstSame
-
lastSame
protected GeneralCache.ObjectRecord lastSame
-
-
Constructor Detail
-
ExpirationTreeNode
public ExpirationTreeNode(GeneralCache.ObjectRecord record)
-
-
Method Detail
-
getExpirationTime
public long getExpirationTime()
-
getLesser
public GeneralCache.ExpirationTreeNode getLesser()
-
setLesser
public void setLesser(GeneralCache.ExpirationTreeNode lesser)
-
getGreater
public GeneralCache.ExpirationTreeNode getGreater()
-
setGreater
public void setGreater(GeneralCache.ExpirationTreeNode greater)
-
addObjectRecord
public void addObjectRecord(GeneralCache.ObjectRecord x)
-
removeObjectRecord
public boolean removeObjectRecord(GeneralCache.ObjectRecord x)
Returns true if this removal was the last one (in which case the tree node is now invalid, and should be removed from the tree)
-
getOldest
public GeneralCache.ObjectRecord getOldest()
-
-