Package io.agroal.pool.wrapper
Class XAConnectionWrapper
java.lang.Object
io.agroal.pool.util.AutoCloseableElement
io.agroal.pool.wrapper.XAConnectionWrapper
- All Implemented Interfaces:
AutoCloseable,PooledConnection,XAConnection
- Author:
- Luis Barreiro
-
Constructor Summary
ConstructorsConstructorDescriptionXAConnectionWrapper(ConnectionHandler connectionHandler, XAConnection xaConnection, boolean trackResources) -
Method Summary
Methods inherited from class io.agroal.pool.util.AutoCloseableElement
closeAllAutocloseableElements, newHead
-
Constructor Details
-
XAConnectionWrapper
public XAConnectionWrapper(ConnectionHandler connectionHandler, XAConnection xaConnection, boolean trackResources)
-
-
Method Details
-
isClosed
- Specified by:
isClosedin classAutoCloseableElement- Throws:
SQLException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePooledConnection- Throws:
SQLException
-
getXAResource
- Specified by:
getXAResourcein interfaceXAConnection- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfacePooledConnection- Throws:
SQLException
-
addConnectionEventListener
- Specified by:
addConnectionEventListenerin interfacePooledConnection
-
removeConnectionEventListener
- Specified by:
removeConnectionEventListenerin interfacePooledConnection
-
addStatementEventListener
- Specified by:
addStatementEventListenerin interfacePooledConnection
-
removeStatementEventListener
- Specified by:
removeStatementEventListenerin interfacePooledConnection
-