/** * {@inheritDoc} */ public long getQueueSize() { int size = 0; readLock.lock(); try { for (WriteBehind queue : queues) { size += queue.getQueueSize(); } } finally { readLock.unlock(); } return size; }
@Override public long getQueueSize() { lock.readLock().lock(); try { if (delegate == null) { return 0; } } finally { lock.readLock().unlock(); } return delegate.getQueueSize(); } }
/** * Gets the best estimate for items in the queue still awaiting processing. * Not including elements currently processed * * @return the amount of elements still awaiting processing. */ @Statistic(name = "queue-length", tags = "write-behind") public long getQueueSize() { return writeBehind.getQueueSize(); } }
/** * Gets the best estimate for items in the queue still awaiting processing. * Not including elements currently processed * @return the amount of elements still awaiting processing. */ public long getQueueSize() { return writeBehind.getQueueSize(); } }
@Override public long getQueueSize() { lock.readLock().lock(); try { if (delegate == null) { return 0; } } finally { lock.readLock().unlock(); } return delegate.getQueueSize(); } }
/** * {@inheritDoc} */ public long getQueueSize() { int size = 0; readLock.lock(); try { for (WriteBehind queue : queues) { size += queue.getQueueSize(); } } finally { readLock.unlock(); } return size; }
/** * {@inheritDoc} */ public long getQueueSize() { int size = 0; readLock.lock(); try { for (WriteBehind queue : queues) { size += queue.getQueueSize(); } } finally { readLock.unlock(); } return size; }
/** * {@inheritDoc} */ public long getQueueSize() { int size = 0; readLock.lock(); try { for (WriteBehind queue : queues) { size += queue.getQueueSize(); } } finally { readLock.unlock(); } return size; }
@Override public long getQueueSize() { lock.readLock().lock(); try { if (delegate == null) { return 0; } } finally { lock.readLock().unlock(); } return delegate.getQueueSize(); } }
/** * Gets the best estimate for items in the queue still awaiting processing. * Not including elements currently processed * * @return the amount of elements still awaiting processing. */ @Statistic(name = "queue-length", tags = "write-behind") public long getQueueSize() { return writeBehind.getQueueSize(); } }
/** * Gets the best estimate for items in the queue still awaiting processing. * Not including elements currently processed * * @return the amount of elements still awaiting processing. */ @Statistic(name = "queue-length", tags = "write-behind") public long getQueueSize() { return writeBehind.getQueueSize(); } }