E - public final class ConnectionInfo<E> extends Object
Connection information, that might be used for monitoring reasons.| Modifier and Type | Method and Description |
|---|---|
long |
getPooledTimeStamp() |
long |
getReadyTimeStamp() |
boolean |
isReady() |
String |
toString() |
public boolean isReady()
Connection is in ready state, waiting for a user to pull it out from the pool.
Returns false if the Connection is currently busy.public long getReadyTimeStamp()
Connection was returned to the pool and its state switched
to ready, or -1 if the Connection is currently in busy state.public long getPooledTimeStamp()
Connection was added to the pool: either created directly
by pool or attached.Copyright © 2017–2020 Oracle Corporation. All rights reserved.