Interface Pool.Factory<E>

  • Enclosing class:
    Pool<E>

    public static interface Pool.Factory<E>
    • Method Detail

      • create

        E create()
      • isValidOnGet

        boolean isValidOnGet​(E e)
      • isValidOnPut

        boolean isValidOnPut​(E e)
        If this method returns false, it should also try its best to release any resources associated with e, because in this case dispose(Object) is not called by the pool.
      • dispose

        void dispose​(E e)