Interface NioQueue

All Known Implementing Classes:
BlockingQueueNioQueue

@Deprecated public interface NioQueue
Deprecated.
Contract to exchange frame between application threads and NIO thread.

This is a simplified subset of BlockingQueue. This interface is considered a SPI and is likely to move between minor and patch releases.

Since:
5.5.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Returns true if the queue contains no element.
    boolean
    offer(WriteRequest writeRequest)
    Deprecated.
    Enqueue a frame, block if the queue is full.
    Deprecated.
    Retrieves and removes the head of this queue, or returns null if this queue is empty.
    int
    Deprecated.
    Get the current size of the queue.
  • Method Details

    • offer

      boolean offer(WriteRequest writeRequest) throws InterruptedException
      Deprecated.
      Enqueue a frame, block if the queue is full.
      Parameters:
      writeRequest -
      Returns:
      Throws:
      InterruptedException
    • size

      int size()
      Deprecated.
      Get the current size of the queue.
      Returns:
    • poll

      WriteRequest poll()
      Deprecated.
      Retrieves and removes the head of this queue, or returns null if this queue is empty.
      Returns:
      the head of this queue, or null if this queue is empty
    • isEmpty

      boolean isEmpty()
      Deprecated.
      Returns true if the queue contains no element.
      Returns:
      true if the queue contains no element