Class ConnectionInfo<E>
- java.lang.Object
-
- org.glassfish.grizzly.connectionpool.ConnectionInfo<E>
-
- Type Parameters:
E-
public final class ConnectionInfo<E> extends Object
PooledConnectioninformation, that might be used for monitoring reasons.- Author:
- Alexey Stashok
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetPooledTimeStamp()longgetReadyTimeStamp()booleanisReady()StringtoString()
-
-
-
Method Detail
-
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.
-
-