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

📄 pooledobject.java

📁 国外的一套开源CRM
💻 JAVA
字号:
/*
 * Licensed under the X license (see http://www.x.org/terms.htm)
 */
package org.ofbiz.minerva.pool;

/**
 * Optional interface for an object in an ObjectPool.  If the objects created
 * by the ObjcetFactory implement this, the pool will register as a listener
 * when an object is checked out, and deregister when the object is returned.
 * Then if the object sends a close or error event, the pool will return the
 * object to the pool without the client having to do so explicitly.
 *
 * @author Aaron Mulder (ammulder@alumni.princeton.edu)
 */
public interface PooledObject {

    /**
     * Adds a new listener.
     */
    public void addPoolEventListener(PoolEventListener listener);

    /**
     * Removes a listener.
     */
    public void removePoolEventListener(PoolEventListener listener);
}

⌨️ 快捷键说明

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