Interface ObjectPoolEntry<T>

All Superinterfaces:
AutoCloseable, Closeable

public interface ObjectPoolEntry<T> extends Closeable
An ObjectPoolEntry is a borrowed object from pool.
Author:
Laszlo Hordos
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Release the pooled object and puts back to the pool where is was borrowed from.
    Gets the object which is pooled.
  • Method Details

    • getPooledObject

      T getPooledObject()
      Gets the object which is pooled.
      Returns:
      The pooled object instance.
    • close

      void close() throws IOException
      Release the pooled object and puts back to the pool where is was borrowed from.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException