public class TransactionEnlistingInterceptor extends Object implements ConnectionInterceptor
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
TransactionEnlistingInterceptor(ConnectionInterceptor next,
TransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
getConnection(ConnectionInfo connectionInfo) |
void |
info(StringBuilder s) |
void |
returnConnection(ConnectionInfo connectionInfo,
ConnectionReturnAction connectionReturnAction)
The
returnConnection method
todo Probably the logic needs improvement if a connection
error occurred and we are destroying the handle. |
public TransactionEnlistingInterceptor(ConnectionInterceptor next, TransactionManager transactionManager)
public void getConnection(ConnectionInfo connectionInfo) throws javax.resource.ResourceException
getConnection
in interface ConnectionInterceptor
javax.resource.ResourceException
public void returnConnection(ConnectionInfo connectionInfo, ConnectionReturnAction connectionReturnAction)
returnConnection
method
todo Probably the logic needs improvement if a connection
error occurred and we are destroying the handle.returnConnection
in interface ConnectionInterceptor
connectionInfo
- a ConnectionInfo
valueconnectionReturnAction
- a ConnectionReturnAction
valuepublic void destroy()
destroy
in interface ConnectionInterceptor
public void info(StringBuilder s)
info
in interface ConnectionInterceptor
Copyright © 2018. All rights reserved.