Class ConfluenceParserPool
java.lang.Object
com.atlassian.confluence.velocity.ConfluenceParserPool
- All Implemented Interfaces:
- org.apache.velocity.runtime.ParserPool
A Velocity 
 The cap on the total number of object instances managed by the pool.
 Negative values mean that there is no limit to the number of objects allocated by the pool.
 
 The cap on the number of "idle" instances in the pool. Use a negative
 value to indicate an unlimited number of idle instances.
 
 Maximum number of milliseconds to block when borrowing an object.
 
ParserPool implementation that is backed by commons-pool. This pool respects the following
 properties.
 
This is a copy of the DynamicParserPool from template-renderer. It is here temporarily until I can think of a good place to put it.
"parser.pool.size"
 The cap on the total number of object instances managed by the pool.
 Negative values mean that there is no limit to the number of objects allocated by the pool.
 Default: 20.
"parser.pool.maxIdle"
 The cap on the number of "idle" instances in the pool. Use a negative
 value to indicate an unlimited number of idle instances.
 Default: 5
"parser.pool.maxWait"
 Maximum number of milliseconds to block when borrowing an object.
 Default: 30000
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.velocity.runtime.parser.Parserget()voidinitialize(org.apache.velocity.runtime.RuntimeServices rsvc) voidput(org.apache.velocity.runtime.parser.Parser parser) toString()
- 
Constructor Details- 
ConfluenceParserPoolpublic ConfluenceParserPool()
 
- 
- 
Method Details- 
initializepublic void initialize(org.apache.velocity.runtime.RuntimeServices rsvc) - Specified by:
- initializein interface- org.apache.velocity.runtime.ParserPool
 
- 
getpublic org.apache.velocity.runtime.parser.Parser get()- Specified by:
- getin interface- org.apache.velocity.runtime.ParserPool
 
- 
putpublic void put(org.apache.velocity.runtime.parser.Parser parser) - Specified by:
- putin interface- org.apache.velocity.runtime.ParserPool
 
- 
toString
 
-