Example usage for java.util.concurrent Semaphore hasQueuedThreads

List of usage examples for java.util.concurrent Semaphore hasQueuedThreads

Introduction

In this page you can find the example usage for java.util.concurrent Semaphore hasQueuedThreads.

Prototype

public final boolean hasQueuedThreads() 

Source Link

Document

Queries whether any threads are waiting to acquire.

Usage

From source file:com.uber.hoodie.func.TestBoundedInMemoryQueue.java

private boolean isQueueFull(Semaphore rateLimiter) {
    return (rateLimiter.availablePermits() == 0 && rateLimiter.hasQueuedThreads());
}