com.cafesoft.core.jdbc
Interface ConnectionPoolConfig

All Known Implementing Classes:
StandardConnectionPoolConfig

public interface ConnectionPoolConfig

Interface for a configuration object that is used to configure the ConnectionPool

Since:
10/31/02
See Also:
ConnectionPool

Method Summary
 boolean allowShrinking()
          Determine if Shrinking of Connections is allowed
 ConnectionConfig getConnectionConfig()
          Get the ConnectionConfig object
 int getIncrement()
          Get the increment of the ConnectionPool
 int getInitial()
          Get the initialCapacity of the ConnectionPool
 int getMaximum()
          Get the maximum capacity of the ConnectionPool
 int getMinimum()
          Get the minimum capacity of the ConnectionPool
 String getName()
          Get the name of the ConnectionPool
 String getPoolPassword()
          Get the ConnectionPool's Password
 String getPoolUser()
          Get the ConnectionPool's User
 int getRefreshPeriod()
          Get the refresh period (in Minutes)
 int getShrinkPeriod()
          Get the shrink period (in Minutes)
 

Method Detail

getName

public String getName()
Get the name of the ConnectionPool

Returns:
the name of the ConnectionPool

getInitial

public int getInitial()
Get the initialCapacity of the ConnectionPool

Returns:
the initial capacity of the ConnectionPool

getMaximum

public int getMaximum()
Get the maximum capacity of the ConnectionPool

Returns:
the maximum capacity of the ConnectionPool

getMinimum

public int getMinimum()
Get the minimum capacity of the ConnectionPool

Returns:
the minimum capacity of the ConnectionPool

getIncrement

public int getIncrement()
Get the increment of the ConnectionPool

Returns:
the value at which the number of Connections objects contained by the pool are incremented

allowShrinking

public boolean allowShrinking()
Determine if Shrinking of Connections is allowed

Returns:
boolean which indicates if shrinking inactive Connections is allowed (true indicates shrinking is enabled)

getShrinkPeriod

public int getShrinkPeriod()
Get the shrink period (in Minutes)

Returns:
the shrink period in minutes

getRefreshPeriod

public int getRefreshPeriod()
Get the refresh period (in Minutes)

Returns:
the refresh period in minutes

getPoolUser

public String getPoolUser()
Get the ConnectionPool's User

Returns:
the ConnectionPool's User

getPoolPassword

public String getPoolPassword()
Get the ConnectionPool's Password

Returns:
the ConnectionPool's Password

getConnectionConfig

public ConnectionConfig getConnectionConfig()
Get the ConnectionConfig object

Returns:
the ConnectionConfig object


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.