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, toString
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
invoke
public ConnectionProxyHandler(LogicalConnectionImplementor logicalConnection)
protected LogicalConnectionImplementor getLogicalConnection()
protected Object continueInvocation(Object proxy, Method method, Object[] args) throws Throwable
continueInvocation
in class AbstractProxyHandler
Throwable
public void physicalConnectionObtained(Connection connection)
ConnectionObserver
physicalConnectionObtained
in interface ConnectionObserver
connection
- The physical connection just obtained.public void physicalConnectionReleased()
ConnectionObserver
physicalConnectionReleased
in interface ConnectionObserver
public void logicalConnectionClosed()
ConnectionObserver
logicalConnectionClosed
in interface ConnectionObserver
public void statementPrepared()
ConnectionObserver
statementPrepared
in interface ConnectionObserver
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.