org.firebirdsql.pool
Interface FirebirdPool

All Superinterfaces:
ConnectionPoolConfiguration, FirebirdConnectionProperties
All Known Implementing Classes:
AbstractFBConnectionPoolDataSource, FBConnectionPoolDataSource, FBWrappingDataSource

Deprecated.

@Deprecated
public interface FirebirdPool
extends FirebirdConnectionProperties, ConnectionPoolConfiguration

Configuration for the FBWrappingDataSource and FBConnectionPoolDataSource objects. Following properties are supported:

Author:
Roman Rokytskyy

Method Summary
 int getBlockingTimeout()
          Deprecated. Get time during which ConnectionPoolDataSource.getPooledConnection() can block.
 int getFreeSize()
          Deprecated.  
 int getMaxIdleTime()
          Deprecated. Get time after which idle connections will be deallocated.
 int getMaxPoolSize()
          Deprecated. Get maximum number of physical connections that can be simultaneously open.
 int getMaxStatements()
          Deprecated.  
 int getMinPoolSize()
          Deprecated. Get minimum number of open JDBC connections that will be created when pool is started.
 int getPingInterval()
          Deprecated. Get time interval after which connection should be pinged.
 int getTotalSize()
          Deprecated.  
 int getWorkingSize()
          Deprecated.  
 boolean isPooling()
          Deprecated. Check if this connection pool uses connection pooling, or just implements JDBC 2.0 SE interfaces.
 boolean isStatementPooling()
          Deprecated. Check if this connection pool provides also prepared statement pooling.
 void restart()
          Deprecated.  
 void setBlockingTimeout(int blockingTimeoutValue)
          Deprecated.  
 void setMaxIdleTime(int maxIdleTime)
          Deprecated.  
 void setMaxPoolSize(int maxPoolSize)
          Deprecated.  
 void setMaxStatements(int maxStatements)
          Deprecated.  
 void setMinPoolSize(int minPoolSize)
          Deprecated.  
 void setPingInterval(int pingIntervalValue)
          Deprecated.  
 void setPooling(boolean pooling)
          Deprecated.  
 void setStatementPooling(boolean statementPooling)
          Deprecated.  
 void shutdown()
          Deprecated.  
 
Methods inherited from interface org.firebirdsql.jdbc.FirebirdConnectionProperties
getBlobBufferSize, getBuffersNumber, getCharSet, getConnectTimeout, getDatabase, getDatabaseParameterBuffer, getDefaultIsolation, getDefaultTransactionIsolation, getEncoding, getNonStandardProperty, getPassword, getRoleName, getSocketBufferSize, getSoTimeout, getSqlDialect, getTpbMapping, getTransactionParameters, getType, getUserName, getUseTranslation, isDefaultResultSetHoldable, isTimestampUsesLocalTimezone, isUseFirebirdAutocommit, isUseStandardUdf, isUseStreamBlobs, setBlobBufferSize, setBuffersNumber, setCharSet, setConnectTimeout, setDatabase, setDefaultIsolation, setDefaultResultSetHoldable, setDefaultTransactionIsolation, setEncoding, setNonStandardProperty, setNonStandardProperty, setPassword, setRoleName, setSocketBufferSize, setSoTimeout, setSqlDialect, setTimestampUsesLocalTimezone, setTpbMapping, setTransactionParameters, setType, setUseFirebirdAutocommit, setUserName, setUseStandardUdf, setUseStreamBlobs, setUseTranslation
 
Methods inherited from interface org.firebirdsql.pool.ConnectionPoolConfiguration
getIdleTimeout, getMaxConnections, getMinConnections, getPingStatement, getRetryInterval, isPingable
 

Method Detail

restart

void restart()
Deprecated. 

shutdown

void shutdown()
Deprecated. 

getBlockingTimeout

int getBlockingTimeout()
Deprecated. 
Description copied from interface: ConnectionPoolConfiguration
Get time during which ConnectionPoolDataSource.getPooledConnection() can block. By default method blocks forever.

Specified by:
getBlockingTimeout in interface ConnectionPoolConfiguration
Returns:
pool blocking timeout in milliseconds, Integer.MAX_VALUE indicates blocking forever.

setBlockingTimeout

void setBlockingTimeout(int blockingTimeoutValue)
Deprecated. 

getMaxIdleTime

int getMaxIdleTime()
Deprecated. 
Description copied from interface: ConnectionPoolConfiguration
Get time after which idle connections will be deallocated.

Specified by:
getMaxIdleTime in interface ConnectionPoolConfiguration
Returns:
idle timeout in milliseconds, Integer.MAX_VALUE indicates that idle connections are not removed.

setMaxIdleTime

void setMaxIdleTime(int maxIdleTime)
Deprecated. 

getMaxStatements

int getMaxStatements()
Deprecated. 

setMaxStatements

void setMaxStatements(int maxStatements)
Deprecated. 

getMaxPoolSize

int getMaxPoolSize()
Deprecated. 
Description copied from interface: ConnectionPoolConfiguration
Get maximum number of physical connections that can be simultaneously open.

Specified by:
getMaxPoolSize in interface ConnectionPoolConfiguration
Returns:
maximum number of simultaneously open physical database connections, 0 if no limit exists.

setMaxPoolSize

void setMaxPoolSize(int maxPoolSize)
Deprecated. 

getMinPoolSize

int getMinPoolSize()
Deprecated. 
Description copied from interface: ConnectionPoolConfiguration
Get minimum number of open JDBC connections that will be created when pool is started.

Specified by:
getMinPoolSize in interface ConnectionPoolConfiguration
Returns:
minimum number of open JDBC connections to open at startup.

setMinPoolSize

void setMinPoolSize(int minPoolSize)
Deprecated. 

getPingInterval

int getPingInterval()
Deprecated. 
Description copied from interface: ConnectionPoolConfiguration
Get time interval after which connection should be pinged.

Specified by:
getPingInterval in interface ConnectionPoolConfiguration
Returns:
number of milliseconds in the ping interval.

setPingInterval

void setPingInterval(int pingIntervalValue)
Deprecated. 

isPooling

boolean isPooling()
Deprecated. 
Description copied from interface: ConnectionPoolConfiguration
Check if this connection pool uses connection pooling, or just implements JDBC 2.0 SE interfaces. By default pooling is on. It might make sense to set pooling off to check performance degradation in test environment. It could be also used in the environment where physical connection must be closed right after usage, however using JDBC 2.0 SE interfaces is either a requirement or is simpler than standard java.sql.Driver.

Specified by:
isPooling in interface ConnectionPoolConfiguration
Returns:
true if pooling is enabled.

setPooling

void setPooling(boolean pooling)
Deprecated. 

isStatementPooling

boolean isStatementPooling()
Deprecated. 
Description copied from interface: ConnectionPoolConfiguration
Check if this connection pool provides also prepared statement pooling. By default prepared statement pooling is enabled, however there might be situations where statement pooling is not desired, for example in environments where database can quickly run out of handles and fast handle reuse is required.

Specified by:
isStatementPooling in interface ConnectionPoolConfiguration
Returns:
true if prepared statement pooling is enabled.

setStatementPooling

void setStatementPooling(boolean statementPooling)
Deprecated. 

getFreeSize

int getFreeSize()
                throws java.sql.SQLException
Deprecated. 
Throws:
java.sql.SQLException

getWorkingSize

int getWorkingSize()
                   throws java.sql.SQLException
Deprecated. 
Throws:
java.sql.SQLException

getTotalSize

int getTotalSize()
                 throws java.sql.SQLException
Deprecated. 
Throws:
java.sql.SQLException


Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.