Interface Pool.Factory<F>

Type Parameters:
F - the type of the pooled objects
All Known Subinterfaces:
LockedPool.Factory<F>
Enclosing interface:
Pool<P>

public static interface Pool.Factory<F>

A factory for Pool instances.

  • Method Summary

    Modifier and Type
    Method
    Description
     
    default Pool<F>
    wrap(Pool<F> pool)
    Wraps, if necessary, the given pool.
  • Method Details

    • newPool

      Pool<F> newPool()
      Returns:
      a new Pool instance
    • wrap

      default Pool<F> wrap(Pool<F> pool)

      Wraps, if necessary, the given pool.

      Parameters:
      pool - the pool to wrap
      Returns:
      a possibly wrapped pool
      See Also: