@Deprecated public interface FirebirdPool extends FirebirdConnectionProperties, ConnectionPoolConfiguration
FBWrappingDataSource
and
FBConnectionPoolDataSource
objects.
Following properties are supported:
blobBufferSize
size of the buffer used to transfer BLOB data.
blockingTimeout
time in milliseconds during which DataSource.getConnection()
method will
block if no free connection is in pool.
charSet
similar to encoding
, but takes Java character set name
instead of Firebird's encoding.
database
path to a database including the server name; for example
localhost/3050:c:/path/to/database.gdb
.
encoding
character encoding for the JDBC connection.
freeSize
read-only: gives amount of free connections in the pool, when 0, blocking
will occur if workingSize
is equal to maxPoolSize
.
isolation
default transaction isolation level for connections as string; possible
values are:
loginTimeout
property from DataSource
, in this context is a synonym
for blockingTimeout
(however value is specified in seconds).
maxIdleTime
time in milliseconds after which idle physical connection in the
pool is closed.
maxStatements
maximum number of pooled prepared statements, if 0, pooling is switched
off.
maxPoolSize
maximum number of physical connections that can be opened by this data
source.
minPoolSize
minimum number of connections that will remain open by this data source.
nonStandardProperty
a non-standard connection parameter in form name[=value]
.
password
password that is used to connect to database.
pingInterval
time interval during which connection will be proved for aliveness.
pooling
allows switching pooling off.
statementPooling
alternative way to switch statement pooling off.
socketBufferSize
size of the socket buffer in bytes. In some cases values used by JVM by
default are not optimal. This results in performance degradation
(especially when you transfer big BLOBs). Usually 8192 bytes provides
good results.
roleName
SQL role name.
tpbMapping
mapping of the TPB parameters to JDBC transaction isolation levels.
transactionIsolationLevel
default transaction isolation level, number from Connection
interface.
totalSize
total number of allocated connections.
type
type of connection that will be created. There are four possible types:
pure Java (or type 4), type 2 that will use Firebird client library to
connect to the database, local-mode type 2 driver, and embedded that
will use embedded engine (access to local databases). Possible values
are (case insensitive):
"PURE_JAVA"
or "TYPE4"
for pure Java (type 4) JDBC connections;
"NATIVE"
or "TYPE2"
to use Firebird client library;
"LOCAL"
to use Firebird client library in local-mode (IPC link to server);
"EMBEDDED"
to use embedded engine.
userName
name of the user that will be used to access the database.
workingSize
number of connections that are in use (e.g. were obtained using
DataSource.getConnection()
method, but not yet closed).
Modifier and Type | Method and Description |
---|---|
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.
|
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
getIdleTimeout, getMaxConnections, getMinConnections, getPingStatement, getRetryInterval, isPingable
void restart()
void shutdown()
int getBlockingTimeout()
ConnectionPoolConfiguration
ConnectionPoolDataSource.getPooledConnection()
can block. By default method blocks forever.getBlockingTimeout
in interface ConnectionPoolConfiguration
Integer.MAX_VALUE
indicates blocking forever.void setBlockingTimeout(int blockingTimeoutValue)
int getMaxIdleTime()
ConnectionPoolConfiguration
getMaxIdleTime
in interface ConnectionPoolConfiguration
Integer.MAX_VALUE
indicates that idle connections are not removed.void setMaxIdleTime(int maxIdleTime)
int getMaxStatements()
void setMaxStatements(int maxStatements)
int getMaxPoolSize()
ConnectionPoolConfiguration
getMaxPoolSize
in interface ConnectionPoolConfiguration
void setMaxPoolSize(int maxPoolSize)
int getMinPoolSize()
ConnectionPoolConfiguration
getMinPoolSize
in interface ConnectionPoolConfiguration
void setMinPoolSize(int minPoolSize)
int getPingInterval()
ConnectionPoolConfiguration
getPingInterval
in interface ConnectionPoolConfiguration
void setPingInterval(int pingIntervalValue)
boolean isPooling()
ConnectionPoolConfiguration
java.sql.Driver
.isPooling
in interface ConnectionPoolConfiguration
true
if pooling is enabled.void setPooling(boolean pooling)
boolean isStatementPooling()
ConnectionPoolConfiguration
isStatementPooling
in interface ConnectionPoolConfiguration
true
if prepared statement pooling is enabled.void setStatementPooling(boolean statementPooling)
int getFreeSize() throws java.sql.SQLException
java.sql.SQLException
int getWorkingSize() throws java.sql.SQLException
java.sql.SQLException
int getTotalSize() throws java.sql.SQLException
java.sql.SQLException
Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.