Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.huihoo.jfox.pool
Interface ObjectPool

All Superinterfaces:
  Component, ComponentSupportMBean, Loggable, ObjectPoolMBean, Persistentable, java.io.Serializable

All Known Implementing Classes:
  AbstractObjectPool

public interface ObjectPool
extends ObjectPoolMBean

the method a object pool needed

Author:
  Young Yang

Method Summary
`boolean` | `removeObject(PoolableObject obj)` remove a poolable object from the pool
`boolean` | `restoreObject(PoolableObject obj)` restore the retrived object to object pool
`PoolableObject` | `retrieveObject()` retrieve Object from object pool

Methods inherited from interface org.huihoo.jfox.pool.ObjectPoolMBean
`clear, getObjectClass, getObjectFactory, getRest, getWorking`

Methods inherited from interface org.huihoo.jfox.service.ComponentSupportMBean
`getObjectName, getProxyInstance`

Methods inherited from interface org.huihoo.jfox.service.Component
`destroy, getName, getState, init`

Methods inherited from interface org.huihoo.jfox.service.Loggable
`getLogger`

Method Detail

### retrieveObject

    public PoolableObject retrieveObject()
                                  throws java.lang.Exception

  retrieve Object from object pool
  Returns:

### restoreObject

    public boolean restoreObject(PoolableObject obj)

  restore the retrived object to object pool
  Returns:
    true if success, false if failed

### removeObject

    public boolean removeObject(PoolableObject obj)

  remove a poolable object from the pool
  Parameters:
    `obj` -
  Returns:

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD