Interface IBlockingQueue<T>

All Known Implementing Classes:
ArrayBlockingQueue, BlockingQueue

public interface IBlockingQueue<T>
A queue that blocks until an element is available.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Closed exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    Dequeue an element.
    dequeue(long timeout)
    Dequeue an element.
    void
    enqueue(T element)
    Enqueue an element.
    boolean
    Check if the queue is closed.
    Peek the topmost element without dequeuing it.
    setClosed(boolean closed)
    Open/close the queue.
    int
    Get the size.