Interface Pool.Factory<E>

Enclosing class:
Pool<E>

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

    Modifier and Type
    Method
    Description
     
    void
     
    boolean
     
    boolean
    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.
  • Method Details

    • 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)