Top Description Fields Constructors Methods
org.glassfish.grizzly.connectionpool

public final Class ConnectionInfo<E>

extends Object
Class Inheritance
Imports
org.glassfish.grizzly.Connection

Pooled Connection information, that might be used for monitoring reasons.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
pack-priv final Connection<L>
pack-priv final SingleEndpointPool<E>
private final long
pack-priv final Link<ConnectionInfo<E>>
pack-priv long

Constructor Summary

AccessConstructor and Description
pack-priv
ConnectionInfo(final Connection<L> connection, final SingleEndpointPool<E> endpointPool)

Method Summary

Modifier and TypeMethod and Description
public long
getPooledTimeStamp()

Returns: the timestamp (in milliseconds) when this Connection was added to the pool: either created directly by pool or attached.

public 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.

public boolean
isReady()

Returns: true if the Connection is in ready state, waiting for a user to pull it out from the pool.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

connectionback to summary
pack-priv final Connection<L> connection
endpointPoolback to summary
pack-priv final SingleEndpointPool<E> endpointPool
pooledTimeStampback to summary
private final long pooledTimeStamp
ttlTimeoutback to summary
pack-priv long ttlTimeout

Constructor Detail

ConnectionInfoback to summary
pack-priv ConnectionInfo(final Connection<L> connection, final SingleEndpointPool<E> endpointPool)

Method Detail

getPooledTimeStampback to summary
public long getPooledTimeStamp()
Returns:long

the timestamp (in milliseconds) when this Connection was added to the pool: either created directly by pool or attached.

getReadyTimeStampback to summary
public long getReadyTimeStamp()
Returns:long

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.

isReadyback to summary
public boolean isReady()
Returns:boolean

true if the Connection is in ready state, waiting for a user to pull it out from the pool. Returns false if the Connection is currently busy.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override