connectionpool
Class ConnectionLeakEventImpl
java.lang.Object
|
+--connectionpool.ConnectionLeakEventImpl
- public class ConnectionLeakEventImpl
- extends java.lang.Object
- implements ConnectionLeakEvent
This class provides an implementation of the ConnectionLeakEvent interface
thus encapsulating a connection leak event.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
getConnection
public java.sql.Connection getConnection()
- Specified by:
- getConnection in interface ConnectionLeakEvent
- Returns:
- Connection which has been blocked by the consumer for more
than the specified time.
getOwner
public java.lang.String getOwner()
- Specified by:
- getOwner in interface ConnectionLeakEvent
- Returns:
- Owner of the connection.
getLastAccessedTime
public long getLastAccessedTime()
- Specified by:
- getLastAccessedTime in interface ConnectionLeakEvent
- Returns:
- Timestamp when the connection was last accessed.
getConnectionObtainedTime
public long getConnectionObtainedTime()
- Specified by:
- getConnectionObtainedTime in interface ConnectionLeakEvent
- Returns:
- Timestamp when connection was drawn from the pool.
getPoolName
public java.lang.String getPoolName()
- Specified by:
- getPoolName in interface ConnectionLeakEvent
- Returns:
- Name of the pool.
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object