public class PooledCassandraDataSource extends Object implements DataSource, ConnectionEventListener
| Modifier and Type | Field and Description |
|---|---|
protected static String |
NOT_SUPPORTED |
| Constructor and Description |
|---|
PooledCassandraDataSource(CassandraDataSource connectionPoolDataSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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<?> arg0) |
void |
setLoginTimeout(int secounds) |
void |
setLogWriter(PrintWriter writer) |
<T> T |
unwrap(Class<T> arg0) |
protected static final String NOT_SUPPORTED
public PooledCassandraDataSource(CassandraDataSource connectionPoolDataSource) throws SQLException
SQLExceptionpublic 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 secounds)
setLoginTimeout in interface CommonDataSourcepublic PrintWriter getLogWriter()
getLogWriter in interface CommonDataSourcepublic void setLogWriter(PrintWriter writer)
setLogWriter in interface CommonDataSourcepublic boolean isWrapperFor(Class<?> arg0)
isWrapperFor in interface Wrapperpublic <T> T unwrap(Class<T> arg0) throws SQLException
unwrap in interface WrapperSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2015–2016. All rights reserved.