Class BaseObjectPool<T>

java.lang.Object
org.apache.commons.pool2.BaseObjectPool<T>
Type Parameters:
T - Type of element pooled in this pool.
All Implemented Interfaces:
ObjectPool<T>
Direct Known Subclasses:
SoftReferenceObjectPool

public abstract class BaseObjectPool<T> extends Object implements ObjectPool<T>
A simple base implementation of ObjectPool. Optional operations are implemented to either do nothing, return a value indicating it is unsupported or throw UnsupportedOperationException.

This class is intended to be thread-safe.

Since:
2.0
Version:
$Revision: 1566605 $
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Not supported in this base implementation.
    abstract T
    Obtains an instance from this pool.
    void
    Not supported in this base implementation.
    void
    Close this pool, and free any resources associated with it.
    int
    Not supported in this base implementation.
    int
    Not supported in this base implementation.
    abstract void
    Invalidates an object from the pool.
    final boolean
    Has this pool instance been closed.
    abstract void
    Return an instance to the pool.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait