PoolUtils.prefill

Calls {@link KeyedObjectPool#addObject(Object)} on <code>keyedPool</code> with <code>key</code> <code>count</code> number of times.

@param keyedPool the keyedPool to prefill. @param key the key to add objects for. @param count the number of idle objects to add for <code>key</code>. @param <K> the type of the pool key @param <V> the type of pool entries @throws Exception when {@link KeyedObjectPool#addObject(Object)} fails. @throws IllegalArgumentException when <code>keyedPool</code> or <code>key</code> is <code>null</code>.

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

Meta