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

String getName()
Get the name of the ConnectionPool

Returns:
the name of the ConnectionPool

getInitial

int getInitial()
Get the initialCapacity of the ConnectionPool

Returns:
the initial capacity of the ConnectionPool

getMaximum

int getMaximum()
Get the maximum capacity of the ConnectionPool

Returns:
the maximum capacity of the ConnectionPool

getMinimum

int getMinimum()
Get the minimum capacity of the ConnectionPool

Returns:
the minimum capacity of the ConnectionPool

getIncrement

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

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

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

Returns:
the shrink period in minutes

getRefreshPeriod

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

Returns:
the refresh period in minutes

getPoolUser

String getPoolUser()
Get the ConnectionPool's User

Returns:
the ConnectionPool's User

getPoolPassword

String getPoolPassword()
Get the ConnectionPool's Password

Returns:
the ConnectionPool's Password

getConnectionConfig

ConnectionConfig getConnectionConfig()
Get the ConnectionConfig object

Returns:
the ConnectionConfig object


Generated on 10:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.