Interface IResourcePool<R extends AutoCloseable>

Type Parameters:
R - is the type of the resources of a IResourcePool.
All Superinterfaces:
AutoCloseable, Closeable, CloseStateRequestable, GroupCloseable
All Known Implementing Classes:
AbstractResourcePool, SqlConnectionPool

public interface IResourcePool<R extends AutoCloseable> extends GroupCloseable
A IResourcePool manages resources that are AutoCloseables.
Author:
Silvan Wyss
  • Method Details

    • borrowResource

      R borrowResource()
      Returns:
      resource from the current IResourcePool which will be borrowed. When The resource is closed its internal resource will be given back to the current IResourcePool and will be available again.