QuickServer
v1.4.7

org.quickserver.util.xmlreader
Class PoolConfig

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

public class PoolConfig
extends java.lang.Object
implements java.io.Serializable

This class encapsulate the pool configuration.

Since:
1.4.5
Author:
Akshathkumar Shetty
See Also:
Serialized Form

Constructor Summary
PoolConfig()
           
 
Method Summary
 int getInitSize()
          Returns the inital size of the pool.
 int getMaxActive()
          Returns the maximum active objects allowed in the pool.
 int getMaxIdle()
          Returns the maximum idle objects allowed in the pool.
 void setInitSize(int initSize)
          Sets the inital size of 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

getInitSize

public int getInitSize()
Returns the inital size of the pool.

Since:
1.4.6
See Also:
setInitSize(int)

setInitSize

public void setInitSize(int initSize)
Sets the inital size of the pool. XML Tag: <init-size></init-size>

Parameters:
initSize - inital size of the pool.
Since:
1.4.6
See Also:
getInitSize()

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.7

Copyright © 2003-2006 QuickServer.org