PoolUtils.prefill

Calls {@link ObjectPool#addObject()} on <code>pool</code> <code>count</code> number of times.

@param pool the pool to prefill. @param count the number of idle objects to add. @param <T> the type of objects in the pool @throws Exception when {@link ObjectPool#addObject()} fails. @throws IllegalArgumentException when <code>pool</code> is <code>null</code>.

  1. void prefill(ObjectPool!(T) pool, int count)
    class PoolUtils
    static
    void
    prefill
    (
    T
    )
    (
    ObjectPool!(T) pool
    ,
    int count
    )
  2. void prefill(KeyedObjectPool!(K, V) keyedPool, K key, int count)
  3. void prefill(KeyedObjectPool!(K, V) keyedPool, Collection!(K) keys, int count)

Meta