QuickServer
v1.4.1

org.quickserver.util.xmlreader
Class ObjectPoolConfig

java.lang.Object
  |
  +--org.quickserver.util.xmlreader.ObjectPoolConfig

public class ObjectPoolConfig
extends java.lang.Object

This class encapsulate the Object pool configuration. The xml is <object-pool>...</object-pool>

Since:
1.3
Author:
Akshathkumar Shetty

Constructor Summary
ObjectPoolConfig()
           
 
Method Summary
 int getMaxActive()
          Returns the maximum active objects allowed in the pool.
 int getMaxIdle()
          Returns the maximum idle objects allowed in the pool.
 void setMaxActive(int maxActive)
          Sets the maximum active objects allowed in the pool.
 void setMaxIdle(int maxIdle)
          Sets the maximum Idle objects allowed in the pool.
 java.lang.String toXML(java.lang.String pad)
          Returns XML config of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectPoolConfig

public ObjectPoolConfig()
Method Detail

getMaxActive

public int getMaxActive()
Returns the maximum active objects allowed in the pool.

Since:
1.3
See Also:
setMaxActive(int)

setMaxActive

public void setMaxActive(int maxActive)
Sets the maximum active objects allowed in the pool. XML Tag: <max-activ></max-activ>

Since:
1.3
See Also:
getMaxActive()

getMaxIdle

public int getMaxIdle()
Returns the maximum idle objects allowed in the pool.

Since:
1.3
See Also:
setMaxIdle(int)

setMaxIdle

public void setMaxIdle(int maxIdle)
Sets the maximum Idle objects allowed in the pool. XML Tag: <max-idle></max-idle>

Since:
1.3
See Also:
getMaxIdle()

toXML

public java.lang.String toXML(java.lang.String pad)
Returns XML config of this class.

Since:
1.3

QuickServer
v1.4.1

Copyright © 2003-2004 QuickServer.org