/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return pool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { synchronized (lock) { return pool.getNumIdle(); } }
/** * Return the number of objects idle in the pool, ignoring the key. * * @param key ignored * @return idle instance count */ public int getNumIdle(final K key) throws UnsupportedOperationException { return pool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return pool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return pool.getNumIdle(); }
/** * {@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(); } } }
synchronized (pool) { if (factor.getNextShrink() < now) { // XXX: Pool 3: move test out of sync block final int numIdle = pool.getNumIdle(); if (numIdle > 0) { discard = true;
/** * True if this mediator is currently connected to one or more workers. * * @return */ public boolean isConnected() { return (workers.getNumActive() + workers.getNumIdle()) > 0; }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return pool.getNumIdle(); }
public int getNumIdle() throws UnsupportedOperationException { synchronized (lock) { return pool.getNumIdle(); } }
/** * Return the number of objects idle in the pool, ignoring the key. * * @param key ignored * @return idle instance count */ public int getNumIdle(final K key) throws UnsupportedOperationException { return pool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return pool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return pool.getNumIdle(); }
/** * Return the number of objects idle in the pool, ignoring the key. * * @param key ignored * @return idle instance count */ public int getNumIdle(final K key) throws UnsupportedOperationException { return pool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return pool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { synchronized (lock) { return pool.getNumIdle(); } }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return pool.getNumIdle(); }
public int getNumIdle(final Object key) throws UnsupportedOperationException { return pool.getNumIdle(); }
/** * Get the number of idle connections in the pool for a given user. */ public int getNumIdle(String username, String password) { ObjectPool pool = (ObjectPool)pools.get(getPoolKey(username)); return (pool == null) ? 0 : pool.getNumIdle(); }
/** * Get the number of idle connections in the pool for a given user. */ public int getNumIdle(String username, String password) { ObjectPool pool = getPool(getPoolKey(username,password)); return (pool == null) ? 0 : pool.getNumIdle(); }