org.exist.storage
Class ElementPool

java.lang.Object
  extended byorg.exist.storage.ElementPool

public class ElementPool
extends java.lang.Object


Field Summary
protected  long lastAccess
           
protected  int LIMIT
           
protected  java.util.TreeMap map
           
protected  int TIMEOUT
           
 
Constructor Summary
ElementPool()
           
ElementPool(int limit)
           
 
Method Summary
 void add(DocumentSet docs, NodeSet nodes, java.lang.String elementName)
           
protected  void checkLastAccess()
           
 void clear()
           
 NodeSet getNodeSet(DocumentSet docs, java.lang.String elementName)
           
 boolean inCache(DocumentSet docs, java.lang.String elementName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

protected java.util.TreeMap map

lastAccess

protected long lastAccess

LIMIT

protected int LIMIT

TIMEOUT

protected int TIMEOUT
Constructor Detail

ElementPool

public ElementPool()

ElementPool

public ElementPool(int limit)
Method Detail

add

public void add(DocumentSet docs,
                NodeSet nodes,
                java.lang.String elementName)

clear

public void clear()

inCache

public boolean inCache(DocumentSet docs,
                       java.lang.String elementName)

getNodeSet

public NodeSet getNodeSet(DocumentSet docs,
                          java.lang.String elementName)

checkLastAccess

protected void checkLastAccess()


Copyright (C) Wolfgang Meier. All rights reserved.