|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.datasource.pool.AbstractXPooledConnection
public abstract class AbstractXPooledConnection
Abstract superclass with generic support for XPooledConnection.
Constructor Summary | |
---|---|
protected |
AbstractXPooledConnection(ConnectionPoolProperties props)
|
Method Summary | |
---|---|
boolean |
canBeRecycledForCallingThread()
Can the connection be recycled (if not available) for the calling thread? |
Reapable |
createConnectionProxy(HeuristicMessage hmsg)
Create a disposable connection object that acts a controller for the pooled connection. |
protected abstract Reapable |
doCreateConnectionProxy(HeuristicMessage hmsg)
|
protected void |
fireOnXPooledConnectionTerminated()
|
protected Reapable |
getCurrentConnectionProxy()
|
protected int |
getDefaultIsolationLevel()
|
long |
getLastTimeAcquired()
Get the last time the connection was acquired. |
long |
getLastTimeReleased()
Get the last time the connection was released, i.e. |
protected String |
getTestQuery()
|
void |
reap()
Invalidates (i.e., forces close) of the current connection proxy This does not mean that the connection can be reused immediately: pending transactions may exist that need to terminate. |
void |
registerXPooledConnectionEventListener(XPooledConnectionEventListener listener)
|
protected abstract void |
testUnderlyingConnection()
|
void |
unregisterXPooledConnectionEventListener(XPooledConnectionEventListener listener)
|
protected void |
updateLastTimeAcquired()
|
protected void |
updateLastTimeReleased()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atomikos.datasource.pool.XPooledConnection |
---|
destroy, isAvailable, isErroneous |
Constructor Detail |
---|
protected AbstractXPooledConnection(ConnectionPoolProperties props)
Method Detail |
---|
public long getLastTimeAcquired()
XPooledConnection
getLastTimeAcquired
in interface XPooledConnection
public long getLastTimeReleased()
XPooledConnection
getLastTimeReleased
in interface XPooledConnection
public Reapable createConnectionProxy(HeuristicMessage hmsg) throws CreateConnectionException
XPooledConnection
createConnectionProxy
in interface XPooledConnection
hmsg
- The heuristic message to show in the logs.
CreateConnectionException
public void reap()
XPooledConnection
reap
in interface XPooledConnection
public void registerXPooledConnectionEventListener(XPooledConnectionEventListener listener)
registerXPooledConnectionEventListener
in interface XPooledConnection
public void unregisterXPooledConnectionEventListener(XPooledConnectionEventListener listener)
unregisterXPooledConnectionEventListener
in interface XPooledConnection
protected void fireOnXPooledConnectionTerminated()
protected String getTestQuery()
protected void updateLastTimeReleased()
protected void updateLastTimeAcquired()
protected Reapable getCurrentConnectionProxy()
public boolean canBeRecycledForCallingThread()
XPooledConnection
canBeRecycledForCallingThread
in interface XPooledConnection
protected int getDefaultIsolationLevel()
protected abstract Reapable doCreateConnectionProxy(HeuristicMessage hmsg) throws CreateConnectionException
CreateConnectionException
protected abstract void testUnderlyingConnection() throws CreateConnectionException
CreateConnectionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |