⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 connectionmonitor.java

📁 Contents * Introduction * Installation * SmartPool 1.5 * Features from earlier releases
💻 JAVA
字号:
/* * @(#) ConnectionMonitor 1.0 02/08/01 */package org.smartlib.pool.core;/** * 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.   * * @author	Sachin Shekar Shetty   * @version 1.0, 02/08/01 * */public interface ConnectionMonitor {	/**	 * @return The owner of the connections, "N/A" if this is an	 * anonymous connection.	 */    public String getOwner();	/**	 * @return Timestamp at which the connection was obtained from the pool. 	 */    public long getConnectionObtainedTime();	/**	 * @return Timestamp at which the connection was last accessed directly, 	 * or through Statement, PreparedStatement, CallableStatement. 	 */    public long getLastAccessedTime();	/**	 * @return Whether the connection is used in a transaction. 	 */    public boolean isCurrentlyInTransaction();    /**     * returns the name of the pool that this connection belongs     */    public String getPoolName();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -