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

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

protected class GeneralCache.ExpirationTreeNode
extends java.lang.Object

This 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
protected  GeneralCache.ObjectRecord firstSame
           
protected  GeneralCache.ExpirationTreeNode greater
           
protected  GeneralCache.ObjectRecord lastSame
           
protected  GeneralCache.ExpirationTreeNode lesser
           
 
Constructor Summary
GeneralCache.ExpirationTreeNode(GeneralCache.ObjectRecord record)
           
 
Method Summary
 void addObjectRecord(GeneralCache.ObjectRecord x)
           
 long getExpirationTime()
           
 GeneralCache.ExpirationTreeNode getGreater()
           
 GeneralCache.ExpirationTreeNode getLesser()
           
 GeneralCache.ObjectRecord getOldest()
           
 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)
 void setGreater(GeneralCache.ExpirationTreeNode greater)
           
 void setLesser(GeneralCache.ExpirationTreeNode lesser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lesser

protected GeneralCache.ExpirationTreeNode lesser

greater

protected GeneralCache.ExpirationTreeNode greater

firstSame

protected GeneralCache.ObjectRecord firstSame

lastSame

protected GeneralCache.ObjectRecord lastSame
Constructor Detail

GeneralCache.ExpirationTreeNode

public GeneralCache.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()