|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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()
|
long |
getCreationTime()
Get the moment when the connection was created. |
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 XPooledConnectionpublic long getLastTimeReleased()
XPooledConnection
getLastTimeReleased in interface XPooledConnection
public Reapable createConnectionProxy(HeuristicMessage hmsg)
throws CreateConnectionException
XPooledConnection
createConnectionProxy in interface XPooledConnectionhmsg - The heuristic message to show in the logs.
CreateConnectionExceptionpublic void reap()
XPooledConnection
reap in interface XPooledConnectionpublic void registerXPooledConnectionEventListener(XPooledConnectionEventListener listener)
registerXPooledConnectionEventListener in interface XPooledConnectionpublic void unregisterXPooledConnectionEventListener(XPooledConnectionEventListener listener)
unregisterXPooledConnectionEventListener in interface XPooledConnectionprotected void fireOnXPooledConnectionTerminated()
protected String getTestQuery()
protected void updateLastTimeReleased()
protected void updateLastTimeAcquired()
protected Reapable getCurrentConnectionProxy()
public boolean canBeRecycledForCallingThread()
XPooledConnection
canBeRecycledForCallingThread in interface XPooledConnectionprotected int getDefaultIsolationLevel()
public long getCreationTime()
XPooledConnection
getCreationTime in interface XPooledConnection
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 | |||||||||