public interface XPooledConnection
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeRecycledForCallingThread()
Can the connection be recycled (if not available) for the calling thread?
|
Reapable |
createConnectionProxy()
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 |
getCreationTime()
Get the moment when the connection was created.
|
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 ?
|
boolean |
markAsBeingAcquiredIfAvailable()
Attempt to claim this connection for use.
|
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) |
boolean isAvailable()
boolean canBeRecycledForCallingThread()
void destroy()
void reap()
long getLastTimeAcquired()
long getLastTimeReleased()
Reapable createConnectionProxy() throws CreateConnectionException
CreateConnectionExceptionboolean isErroneous()
long getCreationTime()
void registerXPooledConnectionEventListener(XPooledConnectionEventListener listener)
void unregisterXPooledConnectionEventListener(XPooledConnectionEventListener listener)
boolean markAsBeingAcquiredIfAvailable()
Copyright © 2018. All Rights Reserved.