org.exist.storage
Class XQueryPool
java.lang.Object
org.exist.util.hashtable.AbstractHashtable
org.exist.util.hashtable.Object2ObjectHashMap
org.exist.storage.XQueryPool
- public class XQueryPool
- extends Object2ObjectHashMap
Global pool for pre-compiled XQuery expressions. Expressions are
stored and retrieved from the pool by comparing the Source
objects from which they were created. For each XQuery, a maximum of
MAX_STACK_SIZE
compiled expressions are kept in the pool.
An XQuery expression will be removed from the pool if it has not been
used for a pre-defined timeout. These settings can be configured in conf.xml.
- Author:
- wolf
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_POOL_SIZE
public static final int MAX_POOL_SIZE
- See Also:
- Constant Field Values
MAX_STACK_SIZE
public static final int MAX_STACK_SIZE
- See Also:
- Constant Field Values
TIMEOUT
public static final long TIMEOUT
- See Also:
- Constant Field Values
TIMEOUT_CHECK_INTERVAL
public static final long TIMEOUT_CHECK_INTERVAL
- See Also:
- Constant Field Values
PROPERTY_MAX_STACK_SIZE
public static final java.lang.String PROPERTY_MAX_STACK_SIZE
- See Also:
- Constant Field Values
PROPERTY_POOL_SIZE
public static final java.lang.String PROPERTY_POOL_SIZE
- See Also:
- Constant Field Values
PROPERTY_TIMEOUT
public static final java.lang.String PROPERTY_TIMEOUT
- See Also:
- Constant Field Values
PROPERTY_TIMEOUT_CHECK_INTERVAL
public static final java.lang.String PROPERTY_TIMEOUT_CHECK_INTERVAL
- See Also:
- Constant Field Values
XQueryPool
public XQueryPool(Configuration conf)
- Parameters:
conf
-
returnCompiledXQuery
public void returnCompiledXQuery(Source source,
CompiledXQuery xquery)
borrowCompiledXQuery
public CompiledXQuery borrowCompiledXQuery(DBBroker broker,
Source source)
Copyright (C) Wolfgang Meier. All rights reserved.