QuickServer
v1.4.5

org.quickserver.util.xmlreader
Class PoolConfig

java.lang.Object
  extended byorg.quickserver.util.xmlreader.PoolConfig
Direct Known Subclasses:
ByteBufferObjectPoolConfig, ClientDataObjectPoolConfig, ClientHandlerObjectPoolConfig, ObjectPoolConfig, ThreadObjectPoolConfig

public class PoolConfig
extends java.lang.Object

This class encapsulate the pool configuration.

Since:
1.4.5
Author:
Akshathkumar Shetty

Constructor Summary
PoolConfig()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolConfig

public PoolConfig()
Method Detail

getMaxActive

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

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>

Parameters:
maxActive - maximum allowed active objects
See Also:
getMaxActive()

getMaxIdle

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

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>

Parameters:
maxIdle - maximum allowed active objects
See Also:
getMaxIdle()

QuickServer
v1.4.5

Copyright © 2003-2005 QuickServer.org