/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return keyedPool.getNumIdle(key); }
/** * {@inheritDoc} */ public int getNumIdle(final K key) throws UnsupportedOperationException { return keyedPool.getNumIdle(key); }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return keyedPool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { synchronized (lock) { return keyedPool.getNumIdle(); } }
/** * {@inheritDoc} */ public int getNumIdle(final K key) throws UnsupportedOperationException { synchronized (lock) { return keyedPool.getNumIdle(key); } }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return keyedPool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle(final K key) throws UnsupportedOperationException { return keyedPool.getNumIdle(key); }
/** * {@inheritDoc} */ @Override protected int numIdle(final K key) { return getKeyedPool().getNumIdle(key); }
/** * Returns the total number of instances currently idle in this pool (optional operation). * Returns a negative value if this information is not available. * * @param key ignored * @return the total number of instances currently idle in this pool or a negative value if unsupported * @throws UnsupportedOperationException <strong>deprecated</strong>: when this implementation doesn't support the operation */ protected int numIdle(final K key) { return getKeyedPool().getNumIdle(); }
/** * {@inheritDoc} */ @Override public void run() { boolean success = false; try { if (keyedPool.getNumIdle(key) < minIdle) { keyedPool.addObject(key); } success = true; } catch (Exception e) { cancel(); } finally { // detect other types of Throwable and cancel this Timer if (!success) { cancel(); } } }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return keyedPool.getNumIdle(key); }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return keyedPool.getNumIdle(); }
/** * Get the number of idle connections in the pool. */ public int getNumIdle() { return (pool == null) ? 0 : pool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle(final K key) throws UnsupportedOperationException { return keyedPool.getNumIdle(key); }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return keyedPool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle(final K key) throws UnsupportedOperationException { synchronized (lock) { return keyedPool.getNumIdle(key); } }
public int getNumIdle() throws UnsupportedOperationException { synchronized (lock) { return keyedPool.getNumIdle(); } }
/** * {@inheritDoc} */ public int getNumIdle() throws UnsupportedOperationException { return keyedPool.getNumIdle(); }
/** * {@inheritDoc} */ public int getNumIdle(final K key) throws UnsupportedOperationException { return keyedPool.getNumIdle(key); }
/** * {@inheritDoc} */ @Override protected int numIdle(final K key) { return getKeyedPool().getNumIdle(key); }