public interface XPooledConnection<ConnectionType>
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeRecycledForCallingThread()
Can the connection be recycled (if not available) for the calling thread?
|
ConnectionType |
createConnectionProxy()
Create a disposable connection object that acts a controller for
the pooled connection.
|
void |
destroy(boolean reap)
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 |
registerXPooledConnectionEventListener(XPooledConnectionEventListener<ConnectionType> listener) |
void |
unregisterXPooledConnectionEventListener(XPooledConnectionEventListener<ConnectionType> listener) |
boolean isAvailable()
boolean canBeRecycledForCallingThread()
void destroy(boolean reap)
long getLastTimeAcquired()
long getLastTimeReleased()
ConnectionType createConnectionProxy() throws CreateConnectionException
CreateConnectionExceptionboolean isErroneous()
long getCreationTime()
void registerXPooledConnectionEventListener(XPooledConnectionEventListener<ConnectionType> listener)
void unregisterXPooledConnectionEventListener(XPooledConnectionEventListener<ConnectionType> listener)
boolean markAsBeingAcquiredIfAvailable()
Copyright © 2022. All rights reserved.