Package io.agroal.pool.util
Class XAConnectionAdaptor
java.lang.Object
io.agroal.pool.util.XAConnectionAdaptor
- All Implemented Interfaces:
PooledConnection
,XAConnection
Disguises a non-XA connection as an XAConnection. Useful to keep the same logic for pooling both XA and non-XA connections
- Author:
- Luis Barreiro
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
XAConnectionAdaptor
-
-
Method Details
-
getConnection
- Specified by:
getConnection
in interfacePooledConnection
-
close
- Specified by:
close
in interfacePooledConnection
- Throws:
SQLException
-
addConnectionEventListener
- Specified by:
addConnectionEventListener
in interfacePooledConnection
-
removeConnectionEventListener
- Specified by:
removeConnectionEventListener
in interfacePooledConnection
-
addStatementEventListener
- Specified by:
addStatementEventListener
in interfacePooledConnection
-
removeStatementEventListener
- Specified by:
removeStatementEventListener
in interfacePooledConnection
-
getXAResource
- Specified by:
getXAResource
in interfaceXAConnection
- Throws:
SQLException
-