ObjectPool
Date: 2010-07-30

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

## org.postgresql.pljava
Interface ObjectPool

    public interface ObjectPool

Method Summary
`PooledObject` | `activateInstance()` Obtain a pooled object.
`void` | `passivateInstance(PooledObject instance)` Call the `PooledObject.passivate()` method and return the object to the pool.
`void` | `removeInstance(PooledObject instance)` Call the `PooledObject.remove()` method and evict the object from the pool.

Method Detail

### activateInstance

    PooledObject activateInstance()
                                  throws java.sql.SQLException

  Obtain a pooled object. A new instance is created if needed. The pooled object is removed from the pool and activated.

  Returns:
    A new object or an object found in the pool.
  Throws:
    `java.sql.SQLException`

### passivateInstance

    void passivateInstance(PooledObject instance)
                           throws java.sql.SQLException

  Call the `PooledObject.passivate()` method and return the object to the pool.

  Parameters:
    `instance` - The instance to passivate.
  Throws:
    `java.sql.SQLException`

### removeInstance

    void removeInstance(PooledObject instance)
                        throws java.sql.SQLException

  Call the `PooledObject.remove()` method and evict the object from the pool.

  Throws:
    `java.sql.SQLException`

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

Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \ Distributed under the terms shown in COPYRIGHT