org.exist.dom
Class NodeObjectPool
java.lang.Object
org.apache.commons.pool.BaseKeyedObjectPool
org.apache.commons.pool.impl.StackKeyedObjectPool
org.exist.dom.NodeObjectPool
- All Implemented Interfaces:
- KeyedObjectPool
public class NodeObjectPool
- extends StackKeyedObjectPool
An object pool for reusable node objects. Usually, node objects
are only held in memory for a short time. By reusing these objects,
we can save many object creations.
- Author:
- wolf
| Methods inherited from class org.apache.commons.pool.impl.StackKeyedObjectPool |
addObject, borrowObject, clear, clear, close, getNumActive, getNumActive, getNumIdle, getNumIdle, invalidateObject, returnObject, setFactory, toString |
NodeObjectPool
public NodeObjectPool()
getInstance
public static final NodeObjectPool getInstance()
borrowNode
public NodeImpl borrowNode(Class clazz)
returnNode
public void returnNode(NodeImpl node)
Copyright (C) Wolfgang Meier. All rights reserved.