|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XPooledConnection
A pooling-capable object wrapping a physical connection to an underlying resource.
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. |
void |
destroy()
Destroy the pooled connection by closing the underlying physical connection. |
long |
getLastTimeAcquired()
Get the last time the connection was acquired. |
long |
getLastTimeReleased()
Get the last time the connection was released, i.e. |
boolean |
isAvailable()
Is the connection available to be taken out of the pool ? |
boolean |
isErroneous()
Is the pooled connection broken ? |
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)
|
void |
unregisterXPooledConnectionEventListener(XPooledConnectionEventListener listener)
|
Method Detail |
---|
boolean isAvailable()
boolean canBeRecycledForCallingThread()
void destroy()
void reap()
long getLastTimeAcquired()
long getLastTimeReleased()
Reapable createConnectionProxy(HeuristicMessage hmsg) throws CreateConnectionException
hmsg
- The heuristic message to show in the logs.
CreateConnectionException
boolean isErroneous()
void registerXPooledConnectionEventListener(XPooledConnectionEventListener listener)
void unregisterXPooledConnectionEventListener(XPooledConnectionEventListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |