ObjectPool.borrow

Obtains an instance from this pool. <p> By contract, clients <strong>must</strong> return the borrowed instance using {@link #returnObject}, {@link #invalidateObject}, or a related method as defined in an implementation or sub-interface. </p> <p> The behaviour of this method when the pool has been exhausted is not strictly specified (although it may be specified by implementations). </p>

@return an instance from this pool.

  1. T borrow()
    class ObjectPool(T)
    T
    borrow
    ()
  2. T borrow(Duration timeout, bool isQuiet)

Meta