Example usage for java.util.concurrent PriorityBlockingQueue subclass-usage

List of usage examples for java.util.concurrent PriorityBlockingQueue subclass-usage

Introduction

In this page you can find the example usage for java.util.concurrent PriorityBlockingQueue subclass-usage.

Usage

From source file com.android.volley.mock.WaitableQueue.java

@SuppressWarnings("serial")
public class WaitableQueue extends PriorityBlockingQueue<Request<?>> {
    private final Request<?> mStopRequest = new MagicStopRequest();
    private final Semaphore mStopEvent = new Semaphore(0);

    // TODO: this isn't really "until empty" it's "until next call to take() after empty"

From source file com.chicm.cmraft.util.CappedPriorityBlockingQueue.java

/**
 * CappedPriorityBlockingQueue is a bounded priority blocking queue, while the size reach it's maximum
 * capacity, the put operation is blocked until there is space in the queue to place the element.
 * The PriorityBlockingQueue is an unbounded priority queue, for which the put operation never blocked.
 * @author chicm
 *

From source file org.programmatori.domotica.own.server.engine.ListenerPriorityBlockingQueue.java

/**
 * This class is a {@link PriorityBlockingQueue} that implement listener for chnge data.  
 *
 * @author Moreno Cattaneo (moreno.cattaneo@gmail.com)
 * @version 1.0.1, 27/02/2013
 * @since OWNServer v0.1.1