LifeCycle
AbstractConnectionSource
, AbstractDriverManagerConnectionSource
, DataSourceConnectionSource
, DriverManagerConnectionSource
, FactoryMethodConnectionSource
public interface ConnectionSource extends LifeCycle
JdbcAppender
. If you want to use the JdbcAppender
but none of the provided
connection sources meet your needs, you can simply create your own connection source.LifeCycle.State
Modifier and Type | Method | Description |
---|---|---|
Connection |
getConnection() |
This should return a new connection every time it is called.
|
String |
toString() |
All implementations must override
Object.toString() to provide information about the connection
configuration (obscuring passwords with one-way hashes). |
Connection getConnection() throws SQLException
SQLException
- if a database error occurs.String toString()
Object.toString()
to provide information about the connection
configuration (obscuring passwords with one-way hashes).Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.