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

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

protected class GeneralCache.ObjectClassRecord
extends java.lang.Object

This is a helper class for the ObjectClassTable. It maintains the data for an individual object class.


Field Summary
protected  int currentMemberCount
           
protected  GeneralCache.ObjectRecord firstLRU
           
protected  GeneralCache.ObjectRecord lastLRU
           
 
Constructor Summary
GeneralCache.ObjectClassRecord()
           
 
Method Summary
 void addEntry(GeneralCache.ObjectRecord x)
          Add a record to the end of the LRU list.
 int getCurrentMemberCount()
           
 GeneralCache.ObjectRecord getOldestEntry()
          Find the first (oldest) entry, or null if there is none.
 void removeEntry(GeneralCache.ObjectRecord x)
          Call this ONLY if it is known that the entry exists in the object class record!!!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentMemberCount

protected int currentMemberCount

firstLRU

protected GeneralCache.ObjectRecord firstLRU

lastLRU

protected GeneralCache.ObjectRecord lastLRU
Constructor Detail

GeneralCache.ObjectClassRecord

public GeneralCache.ObjectClassRecord()
Method Detail

getCurrentMemberCount

public int getCurrentMemberCount()

removeEntry

public void removeEntry(GeneralCache.ObjectRecord x)
Call this ONLY if it is known that the entry exists in the object class record!!!


addEntry

public void addEntry(GeneralCache.ObjectRecord x)
Add a record to the end of the LRU list. Call this ONLY if it is known that the entry does NOT exist in the object class record!!!


getOldestEntry

public GeneralCache.ObjectRecord getOldestEntry()
Find the first (oldest) entry, or null if there is none.