Interface ObjectPool<T>

All Known Implementing Classes:
FixedObjectPool, SharedResourcePool

@ThreadSafe public interface ObjectPool<T>
An object pool.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get an object from the pool.
    Return the object to the pool.
  • Method Details

    • getObject

      T getObject()
      Get an object from the pool.
    • returnObject

      T returnObject(Object object)
      Return the object to the pool. The caller should not use the object beyond this point.
      Returns:
      always null