Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.beasys.commerce.util
Class Pool

    java.lang.Object
      com.beasys.commerce.util.Pool

Deprecated

    @Deprecated
    public class Pool

extends Object

A generic object pooling class.

Constructor Summary
`Pool(PoolMemberFactory factory, int size)` Deprecated Standard constructor.

Method Summary
`Object` | `getInstance()` Deprecated Provide a free member of the pool.
`void` | `returnInstance(Object memberObject)` Deprecated Return a member of the pool to available status.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Pool

    public Pool(PoolMemberFactory factory,
                int size)

  Deprecated
  Standard constructor.

  Parameters
    `factory` - the factory from which to obtain objects, as necessary
    `size` - the maximum pool size

Method Detail

### getInstance

    public Object getInstance()

  Deprecated
  Provide a free member of the pool. Mark the member as in use.

  Returns
    the free pool member

### returnInstance

    public void returnInstance(Object memberObject)

  Deprecated
  Return a member of the pool to available status.

  Parameters
    `memberObject` - the object to return

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

Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.