public class IRISConnectionPoolDataSource extends IRISDataSource implements ConnectionPoolDataSource
IRISConnectionPoolDataSource
object is an implementation of
ConnectionPoolDataSource
interface
In addition to the apis defined by the interface, this class also includes a number
of InterSystems IRIS specific apis. There are apis that can be used to limit (and view) the max
connection pool size, view current pool size, and reset the current connection pool.
Connections should always be obtained by calling getConnection apis, which
are inherited from the DataSource
class. getPooledConnection apis
are meant for use within the driver only, and should not be used by the calling
applications.Constructor and Description |
---|
IRISConnectionPoolDataSource() |
Modifier and Type | Method and Description |
---|---|
int |
getConnectionWaitTimeout()
Returns the current Connection Wait Timeout.
|
int |
getMaxPoolSize()
Returns the current Connection Pool max size
|
int |
getPoolCount()
Returns the current Connection Pool size
|
PooledConnection |
getPooledConnection()
IMPORTANT: this api SHOULD NOT be used to obtain a pooled connection.
|
PooledConnection |
getPooledConnection(String usr,
String pwd)
IMPORTANT: this api SHOULD NOT be used to obtain a pooled connection.
|
void |
restartConnectionPool()
Restarts a Connection Pool.
|
void |
setConnectionWaitTimeout(int timeout)
Set the connection wait timeout.
|
void |
setMaxPoolSize(int max)
Sets a Connection Pool max size.
|
getConnection, getConnection, getConnectionSecurityLevel, getDatabaseName, getDataSourceName, getDefaultTransactionIsolation, getDescription, getEventClass, getIPv6ServerAddress, getKeyRecoveryPassword, getLoginTimeout, getLogWriter, getNodelay, getParentLogger, getPassword, getPortNumber, getServerName, getServicePrincipalName, getSharedMemory, getSSLConfigurationName, getURL, getUser, setConnectionSecurityLevel, setDatabaseName, setDataSourceName, setDefaultTransactionIsolation, setDescription, setEventClass, setIPv6ServerAddress, setKeyRecoveryPassword, setLogFile, setLoginTimeout, setLogWriter, setNodelay, setPassword, setPortNumber, setServerName, setServicePrincipalName, setSharedMemory, setSSLConfigurationName, setURL, setUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
isWrapperFor, unwrap
public PooledConnection getPooledConnection() throws SQLException
getPooledConnection
in interface ConnectionPoolDataSource
SQLException
- throws SQLExceptionpublic PooledConnection getPooledConnection(String usr, String pwd) throws SQLException
getPooledConnection
in interface ConnectionPoolDataSource
usr
- usernamepwd
- passwordSQLException
- throws SQLExceptionpublic void restartConnectionPool() throws SQLException
SQLException
- throws SQLExceptionpublic int getPoolCount()
public void setMaxPoolSize(int max)
max
- max pool sizepublic int getMaxPoolSize()
public int getConnectionWaitTimeout()
public void setConnectionWaitTimeout(int timeout)
timeout
- the connectionWaitTimeout to set© 2024 InterSystems Corporation, Cambridge, MA. All rights reserved. Privacy & Terms Guarantee Accessibility