public class PooledConnectionComponentInstance<P extends PooledConnection> extends Object implements ComponentInstance<P>, ConnectionEventListener
| Constructor and Description |
|---|
PooledConnectionComponentInstance(ComponentPool<P> componentPool,
P pooledConnection) |
PooledConnectionComponentInstance(ComponentPool<P> componentPool,
P pooledConnection,
String validationQuery) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connectionClosed(ConnectionEvent connectionEvent) |
void |
connectionErrorOccurred(ConnectionEvent connectionEvent) |
StackTraceElement[] |
getExistentialStackTrace() |
P |
serve() |
boolean |
validate() |
public PooledConnectionComponentInstance(ComponentPool<P> componentPool, P pooledConnection) throws SQLException
SQLExceptionpublic PooledConnectionComponentInstance(ComponentPool<P> componentPool, P pooledConnection, String validationQuery) throws SQLException
SQLExceptionpublic StackTraceElement[] getExistentialStackTrace()
getExistentialStackTrace in interface Existentialpublic boolean validate()
validate in interface ComponentInstance<P extends PooledConnection>public void connectionClosed(ConnectionEvent connectionEvent)
connectionClosed in interface ConnectionEventListenerpublic void connectionErrorOccurred(ConnectionEvent connectionEvent)
connectionErrorOccurred in interface ConnectionEventListenerpublic P serve()
serve in interface ComponentInstance<P extends PooledConnection>public void close()
throws SQLException
close in interface ComponentInstance<P extends PooledConnection>SQLExceptionCopyright © 2017. All rights reserved.