/** * {@inheritDoc} */ public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { pool.addObject(); }
/** * Add an object to the pool, ignoring the key * * @param key ignored */ public void addObject(final K key) throws Exception, IllegalStateException { pool.addObject(); }
/** * {@inheritDoc} */ public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { synchronized (lock) { pool.addObject(); } }
/** * {@inheritDoc} */ public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { pool.addObject(); }
/** * Call <code>addObject()</code> on <code>pool</code> <code>count</code> number of times. * * @param <T> the type of object * @param pool the pool to prefill. * @param count the number of idle objects to add. * @throws Exception when {@link ObjectPool#addObject()} fails. * @throws IllegalArgumentException when <code>pool</code> is <code>null</code>. * @since Pool 1.3 */ public static <T> void prefill(final ObjectPool<T> pool, final int count) throws Exception, IllegalArgumentException { if (pool == null) { throw new IllegalArgumentException("pool must not be null."); } for (int i = 0; i < count; i++) { pool.addObject(); } }
/** * {@inheritDoc} */ @Override public void run() { boolean success = false; try { if (pool.getNumIdle() < minIdle) { pool.addObject(); } success = true; } catch (Exception e) { cancel(); } finally { // detect other types of Throwable and cancel this Timer if (!success) { cancel(); } } }
/** * {@inheritDoc} */ public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { pool.addObject(); }
public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { synchronized (lock) { pool.addObject(); } }
/** * {@inheritDoc} */ public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { synchronized (lock) { pool.addObject(); } }
/** * {@inheritDoc} */ public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { pool.addObject(); }
/** * Add an object to the pool, ignoring the key * * @param key ignored */ public void addObject(final K key) throws Exception, IllegalStateException { pool.addObject(); }
/** * {@inheritDoc} */ public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { synchronized (lock) { pool.addObject(); } }
public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { synchronized (lock) { pool.addObject(); } }
/** * {@inheritDoc} */ public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { pool.addObject(); }
/** * Add an object to the pool, ignoring the key * * @param key ignored */ public void addObject(final K key) throws Exception, IllegalStateException { pool.addObject(); }
/** * {@inheritDoc} */ public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { pool.addObject(); }
public void addObject(final Object key) throws Exception, IllegalStateException { pool.addObject(); }
public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { instance.addObject(); }
public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { pool.addObject(); }
public void addObject() throws Exception, IllegalStateException, UnsupportedOperationException { pool.addObject(); }