com.atomikos.jdbc
Class AtomikosXAPooledConnection
java.lang.Object
com.atomikos.datasource.pool.AbstractXPooledConnection
com.atomikos.jdbc.AtomikosXAPooledConnection
- All Implemented Interfaces:
- XPooledConnection
public class AtomikosXAPooledConnection
- extends AbstractXPooledConnection
Methods inherited from class com.atomikos.datasource.pool.AbstractXPooledConnection |
createConnectionProxy, fireOnXPooledConnectionTerminated, getCurrentConnectionProxy, getDefaultIsolationLevel, getLastTimeAcquired, getLastTimeReleased, getTestQuery, reap, registerXPooledConnectionEventListener, unregisterXPooledConnectionEventListener, updateLastTimeAcquired, updateLastTimeReleased |
AtomikosXAPooledConnection
public AtomikosXAPooledConnection(XAConnection xaConnection,
JdbcTransactionalResource jdbcTransactionalResource,
ConnectionPoolProperties props)
throws SQLException
- Throws:
SQLException
destroy
public void destroy()
- Description copied from interface:
XPooledConnection
- Destroy the pooled connection by closing the underlying physical connection.
doCreateConnectionProxy
protected Reapable doCreateConnectionProxy(HeuristicMessage hmsg)
throws CreateConnectionException
- Specified by:
doCreateConnectionProxy
in class AbstractXPooledConnection
- Throws:
CreateConnectionException
testUnderlyingConnection
protected void testUnderlyingConnection()
throws CreateConnectionException
- Specified by:
testUnderlyingConnection
in class AbstractXPooledConnection
- Throws:
CreateConnectionException
isAvailable
public boolean isAvailable()
- Description copied from interface:
XPooledConnection
- Is the connection available to be taken out of the pool ?
- Returns:
isErroneous
public boolean isErroneous()
- Description copied from interface:
XPooledConnection
- Is the pooled connection broken ?
- Returns:
toString
public String toString()
- Overrides:
toString
in class Object
isInTransaction
public boolean isInTransaction(CompositeTransaction ct)
canBeRecycledForCallingThread
public boolean canBeRecycledForCallingThread()
- Description copied from interface:
XPooledConnection
- Can the connection be recycled (if not available) for the calling thread?
- Specified by:
canBeRecycledForCallingThread
in interface XPooledConnection
- Overrides:
canBeRecycledForCallingThread
in class AbstractXPooledConnection
- Returns:
Copyright © 2011. All Rights Reserved.