Class SharedSingletonObjectPool<T>

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.commons.pool2.ObjectPool<T>

    public class SharedSingletonObjectPool<T>
    extends Object
    implements org.apache.commons.pool2.ObjectPool<T>
    An ObjectPool that uses a single shared instance.

    This implementation will always return 1 in getNumActive() and return 0 in getNumIdle().