public class ConnectionProxyHandler extends AbstractProxyHandler implements InvocationHandler, NonDurableConnectionObserver
InvocationHandler for intercepting messages to Connection proxies.| Constructor and Description |
|---|
ConnectionProxyHandler(LogicalConnectionImplementor logicalConnection) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
continueInvocation(Object proxy,
Method method,
Object[] args) |
protected LogicalConnectionImplementor |
getLogicalConnection()
Access to our logical connection.
|
void |
logicalConnectionClosed()
The logical connection was closed.
|
void |
physicalConnectionObtained(Connection connection)
A physical connection was obtained.
|
void |
physicalConnectionReleased()
A physical connection was released.
|
void |
statementPrepared()
Notification of a statement being prepared
|
errorIfInvalid, hashCode, invalidate, invoke, isValid, toStringclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitinvokepublic ConnectionProxyHandler(LogicalConnectionImplementor logicalConnection)
protected LogicalConnectionImplementor getLogicalConnection()
protected Object continueInvocation(Object proxy, Method method, Object[] args) throws Throwable
continueInvocation in class AbstractProxyHandlerThrowablepublic void physicalConnectionObtained(Connection connection)
ConnectionObserverphysicalConnectionObtained in interface ConnectionObserverconnection - The physical connection just obtained.public void physicalConnectionReleased()
ConnectionObserverphysicalConnectionReleased in interface ConnectionObserverpublic void logicalConnectionClosed()
ConnectionObserverlogicalConnectionClosed in interface ConnectionObserverpublic void statementPrepared()
ConnectionObserverstatementPrepared in interface ConnectionObserverCopyright © 2012 JBoss by Red Hat. All Rights Reserved.