org.exist.util.pool
Class NodePool
java.lang.Object
org.exist.util.pool.NodePool
public class NodePool
- extends Object
A pool of node objects. Storing a resource creates many, short-lived DOM node
objects. To reduce garbage collection, we use a pool to cache a certain number
of objects.
Constructor Summary |
NodePool(int maxObjects)
|
MAX_OBJECTS
public static final int MAX_OBJECTS
- See Also:
- Constant Field Values
NodePool
public NodePool(int maxObjects)
getInstance
public static NodePool getInstance()
borrowNode
public NodeImpl borrowNode(short key)
returnNode
public void returnNode(NodeImpl node)
getSize
public int getSize(short key)
Copyright (C) Wolfgang Meier. All rights reserved.