@Deprecated public abstract class BasicAbstractConnectionPool extends AbstractConnectionPool implements ConnectionPoolConfiguration, javax.sql.ConnectionPoolDataSource, java.io.Serializable, javax.naming.Referenceable
ConnectionPoolConfiguration
interface and releives developers from creating getters and setters for
pool configuration parameters. Additionally this class provides basic
functionality for JNDI-enabled connection pools.
No other functionality is available.AbstractConnectionPool.UserPasswordPair| Modifier | Constructor and Description |
|---|---|
protected |
BasicAbstractConnectionPool()
Deprecated.
Create instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract BasicAbstractConnectionPool |
createObjectInstance()
Deprecated.
|
static java.lang.Object |
deserialize(byte[] data)
Deprecated.
|
int |
getBlockingTimeout()
Deprecated.
Get time during which
ConnectionPoolDataSource.getPooledConnection()
can block. |
ConnectionPoolConfiguration |
getConfiguration()
Deprecated.
Get configuration of this data source.
|
javax.naming.Reference |
getDefaultReference()
Deprecated.
Get default JNDI reference for this datasource.
|
int |
getIdleTimeout()
Deprecated.
non-standard name, use
getMaxIdleTime() |
abstract int |
getLoginTimeout()
Deprecated.
|
abstract java.io.PrintWriter |
getLogWriter()
Deprecated.
|
int |
getMaxConnections()
Deprecated.
non-standard name, use
getMaxPoolSize() |
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 |
getMinConnections()
Deprecated.
non-standard name, use
getMinPoolSize() |
int |
getMinPoolSize()
Deprecated.
Get minimum number of open JDBC connections that will be created
when pool is started.
|
java.lang.Object |
getObjectInstance(java.lang.Object obj)
Deprecated.
Get object instance for the specified name in the specified context.
|
int |
getPingInterval()
Deprecated.
Get time interval after which connection should be pinged.
|
java.lang.String |
getPingStatement()
Deprecated.
Get SQL statement that will be used to ping connection.
|
abstract javax.sql.PooledConnection |
getPooledConnection()
Deprecated.
|
abstract javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.String password)
Deprecated.
|
protected java.lang.String |
getRefAddr(javax.naming.Reference ref,
java.lang.String type)
Deprecated.
|
javax.naming.Reference |
getReference()
Deprecated.
Get JDNI reference.
|
int |
getRetryInterval()
Deprecated.
Get interval of getting connections retries.
|
boolean |
isKeepStatements()
Deprecated.
|
boolean |
isPingable()
Deprecated.
Check if this pool supports pingable connections.
|
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.
|
static byte[] |
serialize(java.lang.Object obj)
Deprecated.
|
void |
setBlockingTimeout(int blockingTimeout)
Deprecated.
|
void |
setIdleTimeout(int idleTimeout)
Deprecated.
non-standard name, use
setMaxIdleTime(int) |
void |
setKeepStatements(boolean keepStatements)
Deprecated.
|
abstract void |
setLoginTimeout(int seconds)
Deprecated.
|
abstract void |
setLogWriter(java.io.PrintWriter printWriter)
Deprecated.
|
void |
setMaxConnections(int maxConnections)
Deprecated.
non-standard name, use
setMaxPoolSize(int) |
void |
setMaxIdleTime(int maxIdleTime)
Deprecated.
|
void |
setMaxPoolSize(int maxPoolSize)
Deprecated.
|
void |
setMaxStatements(int maxStatements)
Deprecated.
|
void |
setMinConnections(int minConnections)
Deprecated.
non-standard name, use
setMinPoolSize(int) |
void |
setMinPoolSize(int minPoolSize)
Deprecated.
|
void |
setPingInterval(int pingInterval)
Deprecated.
|
void |
setPingStatement(java.lang.String pingStatement)
Deprecated.
|
void |
setPooling(boolean pooling)
Deprecated.
|
void |
setReference(javax.naming.Reference reference)
Deprecated.
Set JNDI reference for this data source.
|
void |
setRetryInterval(int retryInterval)
Deprecated.
|
void |
setStatementPooling(boolean statementPooling)
Deprecated.
|
finalize, getConnectionManager, getFreeSize, getLogger, getPooledConnection, getPoolName, getQueue, getTotalSize, getWorkingSize, physicalConnectionDeallocated, pooledObjectReleased, restart, shutdowngetParentLoggerprotected BasicAbstractConnectionPool()
public abstract int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic abstract void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic abstract java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.CommonDataSourcegetLogWriter in class RootCommonDataSourcejava.sql.SQLExceptionpublic abstract void setLogWriter(java.io.PrintWriter printWriter)
throws java.sql.SQLException
setLogWriter in interface javax.sql.CommonDataSourcesetLogWriter in class RootCommonDataSourcejava.sql.SQLExceptionpublic abstract javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionpublic abstract javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionpublic ConnectionPoolConfiguration getConfiguration()
AbstractConnectionPoolgetConfiguration in class AbstractConnectionPoolConnectionPoolConfiguration describing
this data source.public int getBlockingTimeout()
ConnectionPoolConfigurationConnectionPoolDataSource.getPooledConnection()
can block. By default method blocks forever.getBlockingTimeout in interface ConnectionPoolConfigurationInteger.MAX_VALUE
indicates blocking forever.public void setBlockingTimeout(int blockingTimeout)
public int getIdleTimeout()
getMaxIdleTime()ConnectionPoolConfigurationgetIdleTimeout in interface ConnectionPoolConfigurationInteger.MAX_VALUE
indicates that idle connections are not removed.public void setIdleTimeout(int idleTimeout)
setMaxIdleTime(int)public int getMaxIdleTime()
ConnectionPoolConfigurationgetMaxIdleTime in interface ConnectionPoolConfigurationInteger.MAX_VALUE
indicates that idle connections are not removed.public void setMaxIdleTime(int maxIdleTime)
public int getMaxConnections()
getMaxPoolSize()ConnectionPoolConfigurationgetMaxConnections in interface ConnectionPoolConfigurationpublic void setMaxConnections(int maxConnections)
setMaxPoolSize(int)public int getMaxPoolSize()
ConnectionPoolConfigurationgetMaxPoolSize in interface ConnectionPoolConfigurationpublic void setMaxPoolSize(int maxPoolSize)
public int getMinConnections()
getMinPoolSize()ConnectionPoolConfigurationgetMinConnections in interface ConnectionPoolConfigurationpublic void setMinConnections(int minConnections)
setMinPoolSize(int)public int getMinPoolSize()
ConnectionPoolConfigurationgetMinPoolSize in interface ConnectionPoolConfigurationpublic void setMinPoolSize(int minPoolSize)
public int getPingInterval()
ConnectionPoolConfigurationgetPingInterval in interface ConnectionPoolConfigurationpublic void setPingInterval(int pingInterval)
public java.lang.String getPingStatement()
ConnectionPoolConfigurationExamples of ping SQL statements:
"SELECT CAST(1 AS INTEGER) FROM DUAL"
"SELECT CAST(1 AS INTEGER) FROM RDB$DATABASE"
getPingStatement in interface ConnectionPoolConfigurationpublic void setPingStatement(java.lang.String pingStatement)
public int getRetryInterval()
ConnectionPoolConfigurationgetRetryInterval in interface ConnectionPoolConfigurationpublic void setRetryInterval(int retryInterval)
public boolean isPingable()
ConnectionPoolConfigurationisPingable in interface ConnectionPoolConfigurationtrue if this pool supports pingable connections.public boolean isPooling()
ConnectionPoolConfigurationjava.sql.Driver.isPooling in interface ConnectionPoolConfigurationtrue if pooling is enabled.public void setPooling(boolean pooling)
public boolean isStatementPooling()
ConnectionPoolConfigurationisStatementPooling in interface ConnectionPoolConfigurationtrue if prepared statement pooling is enabled.public void setStatementPooling(boolean statementPooling)
public boolean isKeepStatements()
public void setKeepStatements(boolean keepStatements)
public int getMaxStatements()
public void setMaxStatements(int maxStatements)
protected abstract BasicAbstractConnectionPool createObjectInstance()
public java.lang.Object getObjectInstance(java.lang.Object obj)
throws java.lang.Exception
obj represents
Reference, whose factory class is equal to this class.java.lang.Exceptionprotected java.lang.String getRefAddr(javax.naming.Reference ref,
java.lang.String type)
public javax.naming.Reference getReference()
getReference in interface javax.naming.ReferenceableReference.public void setReference(javax.naming.Reference reference)
reference - JNDI reference.public javax.naming.Reference getDefaultReference()
Reference containing all information
that allows to reconstruct the datasource.public static byte[] serialize(java.lang.Object obj)
public static java.lang.Object deserialize(byte[] data)
Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.