Class SynchronousChannel.Queue

java.lang.Object
org.dbunit.util.concurrent.SynchronousChannel.Queue
Enclosing class:
SynchronousChannel

protected static class SynchronousChannel.Queue extends Object
Simple FIFO queue class to hold waiting puts/takes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected LinkedNode
    The first node in the queue, or null if empty.
    protected LinkedNode
    The last node in the queue, or null if empty.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected LinkedNode
    deq()
    Removes and returns the node at the front of the queue.
    protected void
    Appends the given node to the end of the queue.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • last

      protected LinkedNode last
      The last node in the queue, or null if empty.
  • Constructor Details

    • Queue

      protected Queue()
  • Method Details

    • enq

      protected void enq(LinkedNode p)
      Appends the given node to the end of the queue.
      Parameters:
      p - the node to append.
    • deq

      protected LinkedNode deq()
      Removes and returns the node at the front of the queue.
      Returns:
      the node that was at the front of the queue, or null if empty.