public class PooledCassandraDataSource extends Object implements DataSource, ConnectionEventListener
DataSource and ConnectionEventListener.| Constructor and Description |
|---|
PooledCassandraDataSource(CassandraDataSource connectionPoolDataSource)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all the pooled connections.
|
void |
connectionClosed(ConnectionEvent event) |
void |
connectionErrorOccurred(ConnectionEvent event) |
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter writer) |
<T> T |
unwrap(Class<T> iface) |
public PooledCassandraDataSource(CassandraDataSource connectionPoolDataSource)
connectionPoolDataSource - The underlying CassandraDataSource.public Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic void connectionClosed(ConnectionEvent event)
connectionClosed in interface ConnectionEventListenerpublic void connectionErrorOccurred(ConnectionEvent event)
connectionErrorOccurred in interface ConnectionEventListenerpublic void close()
public int getLoginTimeout()
getLoginTimeout in interface CommonDataSourcepublic void setLoginTimeout(int seconds)
setLoginTimeout in interface CommonDataSourcepublic PrintWriter getLogWriter()
getLogWriter in interface CommonDataSourcepublic void setLogWriter(PrintWriter writer)
setLogWriter in interface CommonDataSourcepublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2020–2024 ING Bank. All rights reserved.