/** * Gets the number of connections currently in the queue * * @return Number of connections currently in the queue */ public int getCountQueued() { int size = 0; if (threadPool != null && threadPool instanceof ExtendedThreadPool) { size = ((ExtendedThreadPool) threadPool).getQueueSize(); } return size; }
/** * @deprecated please use {@link ThreadPoolMonitoringProbe}s to intercept * thread pool events and build statistics. */ @Deprecated public int getQueueSize() { return pool.getQueueSize(); }