connectionpool
Interface ConnectionMonitor

All Known Implementing Classes:
SmartConnection

public abstract interface ConnectionMonitor

This interface defines the behavior of the class used to monitor a Connection. This interface defines the methods which can be used to monitor the runtime status of the Connection.


Method Summary
 long getConnectionObtainedTime()
           
 long getLastAccessedTime()
           
 java.lang.String getOwner()
           
 boolean isCurrentlyInTransaction()
           
 

Method Detail

getOwner

public java.lang.String getOwner()
Returns:
The owner of the connections, "N/A" if this is an anonymous connection.

getConnectionObtainedTime

public long getConnectionObtainedTime()
Returns:
Timestamp at which the connection was obtained from the pool.

getLastAccessedTime

public long getLastAccessedTime()
Returns:
Timestamp at which the connection was last accessed directly, or through Statement, PreparedStatement, CallableStatement.

isCurrentlyInTransaction

public boolean isCurrentlyInTransaction()
Returns:
Whether the connection is used in a transaction.