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