/** * Return the number of objects checked out from the pool, ignoring the key. * * @param key ignored * @return active instance count */ public int getNumActive(final K key) throws UnsupportedOperationException { return pool.getNumActive(); }
/** * {@inheritDoc} */ public int getNumActive() throws UnsupportedOperationException { return pool.getNumActive(); }
/** * {@inheritDoc} */ public int getNumActive() throws UnsupportedOperationException { synchronized (lock) { return pool.getNumActive(); } }
/** * {@inheritDoc} */ public int getNumActive() throws UnsupportedOperationException { return pool.getNumActive(); }
/** * {@inheritDoc} */ public int getNumActive() throws UnsupportedOperationException { return pool.getNumActive(); }
/** * True if this mediator is currently connected to one or more workers. * * @return */ public boolean isConnected() { return (workers.getNumActive() + workers.getNumIdle()) > 0; }
/** * Return the number of objects checked out from the pool, ignoring the key. * * @param key ignored * @return active instance count */ public int getNumActive(final K key) throws UnsupportedOperationException { return pool.getNumActive(); }
/** * {@inheritDoc} */ public int getNumActive() throws UnsupportedOperationException { synchronized (lock) { return pool.getNumActive(); } }
/** * {@inheritDoc} */ public int getNumActive() throws UnsupportedOperationException { return pool.getNumActive(); }
/** * {@inheritDoc} */ public int getNumActive() throws UnsupportedOperationException { return pool.getNumActive(); }
public int getNumActive() throws UnsupportedOperationException { synchronized (lock) { return pool.getNumActive(); } }
/** * {@inheritDoc} */ public int getNumActive() throws UnsupportedOperationException { return pool.getNumActive(); }
/** * {@inheritDoc} */ public int getNumActive() throws UnsupportedOperationException { return pool.getNumActive(); }
/** * {@inheritDoc} */ public int getNumActive() throws UnsupportedOperationException { return pool.getNumActive(); }
/** * {@inheritDoc} */ public int getNumActive() throws UnsupportedOperationException { return pool.getNumActive(); }
public int getNumActive() throws UnsupportedOperationException { synchronized (lock) { return pool.getNumActive(); } }
/** * Get the number of active connections in the pool for a given user. */ public int getNumActive(String username, String password) { ObjectPool pool = (ObjectPool)pools.get(getPoolKey(username)); return (pool == null) ? 0 : pool.getNumActive(); }
public APIKeyValidatorClient get() throws Exception { if (log.isTraceEnabled()) { int active = clientPool.getNumActive(); if (active >= maxIdle) { log.trace("Key validation pool size is :" + active); } } return (APIKeyValidatorClient) clientPool.borrowObject(); }
public ThriftKeyValidatorClient get() throws Exception { if (log.isTraceEnabled()) { int active = clientPool.getNumActive(); if (active >= maxIdle) { log.trace("Key validation pool size is :" + active); } } return (ThriftKeyValidatorClient) clientPool.borrowObject(); }
/** * Get the number of active connections in the pool for a given user. */ public int getNumActive(String username, String password) { ObjectPool pool = getPool(getPoolKey(username,password)); return (pool == null) ? 0 : pool.getNumActive(); }