Class ConnectionInfo<E>
java.lang.Object
org.glassfish.grizzly.connectionpool.ConnectionInfo<E>
- Type Parameters:
E-
Pooled
Connection information, that might be used for monitoring reasons.- Author:
- Alexey Stashok
-
Method Details
-
isReady
public boolean isReady()- Returns:
- true if the
Connectionis in ready state, waiting for a user to pull it out from the pool. Returns false if theConnectionis currently busy.
-
getReadyTimeStamp
public long getReadyTimeStamp()- Returns:
- the timestamp (in milliseconds) when this
Connectionwas returned to the pool and its state switched to ready, or -1 if theConnectionis currently in busy state.
-
getPooledTimeStamp
public long getPooledTimeStamp()- Returns:
- the timestamp (in milliseconds) when this
Connectionwas added to the pool: either created directly by pool or attached.
-
toString
-