List of usage examples for java.util.concurrent Semaphore hasQueuedThreads
public final boolean hasQueuedThreads()
From source file:com.uber.hoodie.func.TestBoundedInMemoryQueue.java
private boolean isQueueFull(Semaphore rateLimiter) { return (rateLimiter.availablePermits() == 0 && rateLimiter.hasQueuedThreads()); }